####################################
# Germany 20000 - 20999 by Lothos
####################################
# Who he is invading flags
#	GERInvadePoland 		= Preparing to invade Poland
#	GERInvadeNorway 		= Preparing to invade Norway
#	GERLowCountriesPrepare	= Prepare to invade Belgium, Holland and Luxemburg
#	GERInvadeRussia			= Prepare to invade Russia
#	GERInvadeSpain			= Prepare to invade Spain
#	GERInvadeEngland		= Prepare to invade England
#	GERInvadeYugoslavia		= Prepare to invade Yugoslavia
#	InvYugoslavia			= Global flag to tell minors to prepare

# Building Style Flags
#	GERBuildStandard		= Standard Build when strategy is unknown
#	GERBuildNavy			= Build Navy when preparing to attack the UK and USA
#	GERBuildLand			= Build heavy on the land troops with no sea
#	GERBuildMix				= Build mix of land and subs

# Behavior Flags
#	GERStandardFront		= Load standard front AI to save supplies etc....
#	GERSubPatrol			= Sub Patrol AI loaded
#	GERSubPatrol1			= East Atlantic Sub Patern
#	GERSubPatrol2			= Central Atlantic and East Coast Patern
#	GERSubPatrol3			= Carabean and Central Atlantic Patern

# Air AI Flags
#	GERAirAINaval			= Germany has there Air vs Naval AI loaded
#	GERAirAIStrategic		= Germany has their Strategic bombing AI loaded
#	GERAirAIGround			= Germany has their ground support AI loaded

# Garrisoning Flags
#	GERBalticGarrison		= Garrison the Baltic normally
#	GERBalticGarrisonRussia	= Garrison the Baltic based on war with Russia

################
# Norway Invasion AI
#############################################
event = {
	id = 20000
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = GERInvadeNorway }
		NOT = {	lost_national = { country = GER value = 2 } }
		OR = {
			war = { country = NOR country = GER }
			war = { country = SWE country = GER }
			war = { country = FIN country = GER }
		}
		NOT = {
			AND = { # LOW COUNTRIES
				war = { country = GER country = HOL }
				NOT = { control = { province = 47 data = GER } } # Amsterdamm
			}
			AND = {
				war = { country = GER country = BEL }
				NOT = { control = { province = 51 data = GER } } # Brussels
			}
			AND = {
				war = { country = GER country = FRA }
				NOT = { control = { province = 56 data = GER } } # Paris
				OR = {
					war = { country = GER country = HOL }
					war = { country = GER country = BEL }
				}
			}
			AND = {
				war = { country = GER country = SOV }
				NOT = { land_percentage = { country = SOV value = 0.8 } }
				NOT = { lost_national = { country = SOV value = 10 } }
			}
		}
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERInvadeNorway }
		command = { type = local_clrflag which = GERSubPatrol }
		command = { type = ai which = "switch/GER_Norway.ai" }
	}
}
################
# End of Norway Invasion AI
#############################################
event = {
	id = 20001
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = GERInvadeNorway
		OR = {
			lost_national = { country = GER value = 2 }
			NOT = {
				war = { country = NOR country = GER }
				war = { country = SWE country = GER }
				war = { country = FIN country = GER }
			}
			AND = { # LOW COUNTRIES
				war = { country = GER country = HOL }
				NOT = { control = { province = 47 data = GER } } # Amsterdamm
			}
			AND = {
				war = { country = GER country = BEL }
				NOT = { control = { province = 51 data = GER } } # Brussels
			}
			AND = {
				war = { country = GER country = FRA }
				NOT = { control = { province = 56 data = GER } } # Paris
				OR = {
					war = { country = GER country = HOL }
					war = { country = GER country = BEL }
				}
			}
			AND = {
				war = { country = GER country = SOV }
				NOT = { land_percentage = { country = SOV value = 0.8 } }
				NOT = { lost_national = { country = SOV value = 10 } }
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_clrflag which = GERInvadeNorway }
		command = { type = ai which = "switch/GER_Norway_END.ai" }
	}
}
################
# Poland Invasion AI
#############################################
event = {
	id = 20002
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		NOT = { ispuppet = GER }
		OR = {
			AND = {
				local_flag = GERInvadePoland
				month = 4 # May
				NOT = { month = 9 } # October
				AND = {
					day = 1
					NOT = { day = 2 }
				}
			}
			event = 2027 #Danzig or War
			event = 20012 # German standard War AI
			AND = {	
				war = { country = POL country = GER }
				event = 2027 #Danzig or War
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = september year = 1939 }
	offset = 1
	deathdate = { day = 2 month = september year = 1939 }

	action_a = {
		command = { type = ai which = "switch/GER_Poland.ai" }
		command = { type = war which = POL }
		command = { type = local_clrflag which = GERInvadePoland }
		command = { type = local_clrflag which = GERStandardFront }
		command = { type = sleepevent which = 20023 } # Prepare for invasion of Poland event
	}
}
################
# Germany mass on low countries border
#############################################
event = {
	id = 20003
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		OR = {
			AND = {
				day = 2
				NOT = { day = 3 }
			}
		}
		NOT = { local_flag = GERLowCountriesPrepare }
		war = { country = FRA country = GER }
		NOT = { war = { country = POL country = GER } }
		NOT = { war = { country = SOV country = GER } }
		NOT = { war = { country = BEL country = GER } }
		NOT = { war = { country = AUS country = GER } }
		NOT = { war = { country = CZE country = GER } }
		NOT = { war = { country = HUN country = GER } }
		AND = {
			exists = SCH
			NOT = { war = { country = SCH country = GER } }
		}
		AND = {
			OR = {
				NOT = { exists = AUS }
				NOT = { war = { country = AUS country = GER } }
			}
			OR = {
				NOT = { exists = CZE }
				NOT = { war = { country = CZE country = GER } }
			}
			NOT = { war = { country = YUG country = GER } }
		}
		AND = {
			OR = {
				NOT = { exists = AUS }
				NOT = { war = { country = AUS country = GER } }
			}
			NOT = { war = { country = ITA country = GER } }
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1948 }

	action_a = {
		command = { type = ai which = "switch/GER_Poland_After.ai" }
		command = { type = local_setflag which = GERLowCountriesPrepare }
		command = { type = local_clrflag which = GERBalticGarrison }
		command = { type = local_clrflag which = GERBalticGarrisonRussia }
	}
}
################
# German Invasion AI Low Countries German Invasion if early war
########################################
event = {
	id = 20004
	random = no
	country = GER

	trigger = {
		ai = yes
		OR = {
			alliance = { country = SPA country = GER }
			alliance = { country = SPR country = GER }
			AND = {
				month = 4 # May
				NOT = { month = 7 } # August
			}
		}
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
		}
		local_flag = GERLowCountriesPrepare
		government = fascist
		OR = {
			AND = {
				war = { country = FRA country = GER }
				NOT = {	war = { country = SOV country = GER } }
				NOT = {	war = { country = POL country = GER } }
				NOT = { event = 20002 }
			}
			AND = {
				event = 20002
				war = { country = FRA country = GER }
				NOT = {	war = { country = SOV country = GER } }
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1948 }

	action_a = {
		command = { type = sleepevent which = 20003 }
		command = { type = war which = BEL }
		command = { type = war which = HOL }
		command = { type = war which = LUX }
		command = { type = ai which = "switch/GER_France.ai" }
		command = { type = local_clrflag which = GERLowCountriesPrepare }
		command = { type = local_clrflag which = GERStandardFront }
	}
}
################
# Load Germany Standard Front AI
#############################################
event = {
	id = 20005
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = GERStandardFront }
		OR = {
			AND = {
				local_flag = GERInvadePoland
				NOT = { war = { country = GER country = POL } }
			}
			AND = {
				local_flag = GERInvadeYugoslavia
				NOT = { war = { country = GER country = YUG } }
			}
			AND = {
				local_flag = GERInvadeRussia
				NOT = { war = { country = GER country = YUG } }
			}
			AND = {
				OR = {
					local_flag = GERInvadeSpain
					local_flag = GERInvadeEngland
				}
				NOT = { war = { country = GER country = SPR } }
				NOT = { war = { country = GER country = SPA } }
			}
		}
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 3
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_Standard_Front.ai" }
		command = { type = local_setflag which = GERStandardFront }
	}
}
################
# Baklan Campaign
#############################################
event = {
	id = 20006
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		exists = YUG
		NOT = { ispuppet = GER }
		day = 2
		NOT = { day = 3 }
		NOT = { war= { country = YUG country = GER } }
		NOT = { alliance= { country = YUG country = GER } }
		NOT = { alliance= { country = YUG country = SOV } }
		NOT = { puppet = { country = YUG country = GER } }
		NOT = { local_flag = GERInvadePoland }
		NOT = { local_flag = GERInvadeEngland }
		NOT = { local_flag = GERInvadeSpain }
		#Austria Provinces if not he must invade Austria
		control = { province = 377 data = GER }
		control = { province = 461 data = GER }
		control = { province = 460 data = GER }
		OR = {
			local_flag = GERInvadeRussia
			AND = {
				alliance = { country = GER country = ITA }
				NOT = {	lost_national = { country = GER value = 2 } }
				control = { province = 56 data = GER } # Paris
				NOT = { war= { country = GER country = SOV } }
				NOT = { war= { country = GER country = SPA } }
				NOT = { war= { country = GER country = SPR } }
				OR = {
					war= { country = ITA country = GRE }
					war= { country = ITA country = YUG }
					war= { country = ITA country = ALB }
				}
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_Baklans.ai" }
		command = { type = local_setflag which = GERInvadeYugoslavia }
		command = { type = setflag which = InvYugoslavia }
		command = { type = local_clrflag which = GERInvadeRussia }
	}
}
################
# Germany invades Russian
#############################################
event = {
	id = 20007
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		NOT = { ispuppet = GER }
		OR = {
			month = 5 # was 6
			AND = {
				day = 21
				NOT = { day = 22 }
			}
		}
		AND = {
			OR = {
				AND = {
					owned = { province = 488 data = GER }
					control = { province = 488 data = GER } 
					garrison = { country = GER province = 488  type = land size = 5 area = no }
				}
				AND = {
					NOT = { owned = { province = 488 data = GER } }
					NOT = { control = { province = 488 data = GER } }
				}
			}
			OR = {
				AND = {
					owned = { province = 489 data = GER }
					control = { province = 489 data = GER } 
					garrison = { country = GER province = 489  type = land size = 5 area = no }
				}
				AND = {
					NOT = { owned = { province = 489 data = GER } }
					NOT = { control = { province = 489 data = GER } }
				}
			}
			OR = {
				AND = {
					owned = { province = 487 data = GER }
					control = { province = 487 data = GER } 
					garrison = { country = GER province = 487  type = land size = 5 area = no }
				}
				AND = {
					NOT = { owned = { province = 487 data = GER } }
					NOT = { control = { province = 487 data = GER } }
				}
			}
			OR = {
				AND = {
					owned = { province = 509 data = GER }
					control = { province = 509 data = GER } 
					garrison = { country = GER province = 509  type = land size = 5 area = no }
				}
				AND = {
					NOT = { owned = { province = 509 data = GER } }
					NOT = { control = { province = 509 data = GER } }
				}
			}
			OR = {
				AND = {
					owned = { province = 510 data = GER }
					control = { province = 510 data = GER } 
					garrison = { country = GER province = 510  type = land size = 5 area = no }
				}
				AND = {
					NOT = { owned = { province = 510 data = GER } }
					NOT = { control = { province = 510 data = GER } }
				}
			}
			OR = {
				AND = {
					owned = { province = 206 data = GER }
					control = { province = 206 data = GER } 
					garrison = { country = GER province = 206  type = land size = 5 area = no }
				}
				AND = {
					NOT = { owned = { province = 206 data = GER } }
					NOT = { control = { province = 206 data = GER } }
				}
			}
		}
		local_flag = GERInvadeRussia
		NOT = { local_flag = GERInvadePoland }
		NOT = { local_flag = GERInvadeYugoslavia }
		NOT = {	lost_national = { country = GER value = 2 } }
		control = { province = 56 data = GER } # Paris
		NOT = { war = { country = GER country = SOV } }
		NOT = { war = { country = GER country = SPA } }
		NOT = { war = { country = GER country = SPR } }
		NOT = { war = { country = GER country = YUG } }
		OR = {
			land_percentage = { country = SOV value = 0.5 } # was 0.8, then 0.7
			AND = {
				land_percentage = { country = SOV value = 0.45 } # was 0.7, then 0.6
				alliance = { country = GER country = ROM }
				alliance = { country = GER country = HUN }
			}
		}
		OR = {
			NOT = { war = { country = GER country = GRE } }
			AND = {
				war = { country = GER country = GRE }
				NOT = { control = { province = 401 data = GRE } } # Athens
				NOT = { control = { province = 393 data = GRE } }
				NOT = { control = { province = 395 data = GRE } }
				NOT = { control = { province = 394 data = GRE } }
				NOT = { control = { province = 402 data = GRE } }
				NOT = { control = { province = 403 data = GRE } }
				NOT = { control = { province = 392 data = GRE } }
				NOT = { control = { province = 412 data = GRE } }
				NOT = { control = { province = 411 data = GRE } }
				NOT = { control = { province = 410 data = GRE } }
			}
		}
		OR = {
			alliance = { country = GER country = POL }
			alliance = { country = SOV country = POL }
			NOT = { exists = POL }
		}
		OR = {
			AND = {
				month = 3 # April
				NOT = {	month = 4 } # May
				random = 10
			}
			AND = {
				month = 4 # May
				NOT = {	month = 5 } # June
				random = 20
			}
			AND = {
				month = 5 # June
				NOT = {	month = 6 } # July
				OR = {
					AND = {
						random = 10
						NOT = { day = 21 }
					}
					AND = {
						day = 21 # historical date
						random = 90
					}
				}
			}
			AND = {
				month = 6 # July
				NOT = {	month = 7 } # August
				random = 80
			}
			AND = {
				month = 7 # August
				NOT = {	month = 8 } # September
				random = 20
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1941 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = { #Russian Campaign
		command = { type = war which = SOV }
		command = { type = sleepevent which = 20013 }
		command = { type = sleepevent which = 20010 }
		command = { type = ai which = "switch/GER_Russia.ai" }
		#command = { type = local_setflag which = max_factor_020 }
		#command = { type = local_clrflag which = max_factor_030 }
		#command = { type = local_clrflag which = max_factor_040 }
		command = { type = local_clrflag which = GERInvadeRussia }
		command = { type = local_clrflag which = GERStandardFront }
		command = { type = tc_mod value = 20 }
		command = { type = supply_dist_mod value = 10 }
		command = { type = morale which = land value = 30 }
		command = { type = surprise which = land value = 40 }
		command = { type = surprise which = air value = 40 }
	}
}

################
# Barbarossa surprise subsides
#############################################

event = {
	id = 20052
	random = no
	country = GER

	trigger = {
		#ai = yes
		event = 20007 # Barbarossa started
		OR = {
			month = 10 # november
			event = 2654 # fourth gpw event
		}
	}

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	name = "AI_EVENT"
	style = 0

	action_a = {
		command = { type = surprise which = land value = -40 }
		command = { type = surprise which = air value = -40 }
	}
}

event = {
	id = 20053
	random = no
	country = GER

	trigger = {
		#ai = yes
		event = 20007 # Barbarossa started
		OR = {
			month = 10 # november
			event = 2655 # fifth gpw event
		}
	}

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	name = "AI_EVENT"
	style = 0

	action_a = {
		command = { type = tc_mod value = -20 }
		command = { type = supply_dist_mod value = -10 }
		command = { type = morale which = land value = -30 }
	}
}

################
# Germany builds paratroopers and transport plane 
#############################################
#event = {
#	id = 20008
#	random = no
#	country = GER
#	persistent = yes
#	style = 0
#
#	trigger = {
#		ai = yes
#		technology = 4250
#		NOT = { lost_national = { country = GER value = 2 } }
#		NOT = { transport_plane = { country = GER value = 2 } }
#		event = 2030 # The Treaty of Munich signals high defence lobby
#	}
#
#	date = { day = 1 month = october year = 1938 }
#	offset = 7
#	deathdate = { day = 29 month = december year = 1999 }
#
#	name = "AI_EVENT"
#
#	action_a = {
#		command = { type = build_division which = transport_plane }
#	}
#}
#event = {
#	id = 20009
#	random = no
#	country = GER
#	persistent = yes
#	style = 0
#
#	trigger = {
#		ai = yes
#		technology = 1070 # Airborne
#		NOT = { lost_national = { country = GER value = 2 } }
#		OR = {
#			AND = {
#				transport_plane = { country = GER value = 1 }
#				NOT = { transport_plane = { country = GER value = 2 } } # was 1
#				NOT = { paratrooper = { country = GER value = 1 } }
#			}
#			AND = {
#				transport_plane = { country = GER value = 2 }
#				NOT = { paratrooper = { country = GER value = 2 } }
#			}
#		}
#		event = 2030 # The Treaty of Munich signals high defence lobby
#	}
#
#	date = { day = 1 month = january year = 1936 }
#	offset = 4
#	deathdate = { day = 29 month = december year = 1999 }
#
#	name = "AI_EVENT"
#
#	action_a = {
#		command = { type = build_division which = paratrooper value = artillery }
#	}
#}
################
# German vs. Russian war setup
#############################################
event = {
	id = 20010
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		war= { country = GER country = SOV }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = { #Russian Campaign
		command = { type = ai which = "switch/GER_Russia.ai" }
		#command = { type = local_setflag which = max_factor_020 }
		#command = { type = local_clrflag which = max_factor_030 }
		#command = { type = local_clrflag which = max_factor_040 }
		command = { type = sleepevent which = 20007 }
	}
}
################
# Baklan Campaign Part 2
#############################################
event = {
	id = 20011
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		local_flag = GERInvadeYugoslavia
		OR = {
			NOT = { exists = YUG }
			war = { country = GER country = YUG }
			AND = {
				atwar = YUG
				NOT = { alliance = { country = YUG country = SOV } }
			}
			AND = {
				exists = YUG
				month = 2 # March
				NOT = { month = 5 } # June
				local_flag = GERInvadeYugoslavia
				control = { province = 56 data = GER } # Paris
				NOT = { war = { country = GER country = SOV } }
				NOT = { war = { country = GER country = CZE } }
				NOT = { war = { country = GER country = POL } }
				AND = {
					day = 1
					NOT = { day = 2 }
				}
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_Yugoslavia.ai" }
		command = { type = war which = YUG }
		command = { type = clrflag which = InvYugoslavia }
		command = { type = local_clrflag which = GERInvadeYugoslavia }
		command = { type = local_clrflag which = GERStandardFront }
		command = { type = sleepevent which = 20006 }
	}
}
################
# German changes production values atwar
#############################################
event = {
	id = 20012
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		atwar = GER
		NOT = { war = { country = SOV country = GER } }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 4
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_atwar.ai" }
		#command = { type = local_setflag which = max_factor_020 }
		#command = { type = local_clrflag which = max_factor_030 }
		#command = { type = local_clrflag which = max_factor_040 }
	}
}
################
# Germany masses on Russian border setup
#############################################
event = {
	id = 20013
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { ispuppet = GER }
		day = 22
		NOT = { day = 23 }
		event = 20014 # Decide Strategy
		# NOT = { local_flag = GERInvadeRussia }
		NOT = { local_flag = GERInvadeYugoslavia }
		NOT = { local_flag = GERInvadePoland }
		NOT = { local_flag = GERInvadeSpain }
		NOT = { local_flag = GERInvadeEngland }
		NOT = { war= { country = GER country = SOV } }
		NOT = { war= { country = GER country = SPA } }
		NOT = { war= { country = GER country = SPR } }
		NOT = { war= { country = GER country = YUG } }
		NOT = { war= { country = GER country = POL } }
		NOT = { war= { country = GER country = AUS } }
		NOT = { war= { country = GER country = CZE } }
		NOT = { war= { country = GER country = HUN } }
		NOT = { war= { country = GER country = ROM } }
		NOT = { war= { country = GER country = BUL } }
		control = { province = 56 data = GER } # Paris
		OR = {
			NOT = { war = { country = GER country = GRE } }
			AND = {
				war = { country = GER country = GRE }		
				NOT = { control = { province = 401 data = GRE } } # Athens
				#NOT = { control = { province = 393 data = GRE } }
				#NOT = { control = { province = 395 data = GRE } }
				#NOT = { control = { province = 394 data = GRE } }
				NOT = { control = { province = 402 data = GRE } }
				NOT = { control = { province = 403 data = GRE } }
				NOT = { control = { province = 392 data = GRE } }
				NOT = { control = { province = 412 data = GRE } }
				NOT = { control = { province = 411 data = GRE } }
				NOT = { control = { province = 410 data = GRE } }
			}
		}
		OR = {
			flag = GC1939 # 1939 Grand Campaign
			event = 2013  # Molotov Pact Historical
			event = 2015  # Molotov Pact Alliance
			event = 2016  # Molotov Pact Limited
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_Russia_Buildup.ai" }
		command = { type = local_setflag which = GERInvadeRussia }
	}
}
################
# German decides strategy after Paris falls
#############################################
event = {
	id = 20014
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		NOT = { ispuppet = GER }
		NOT = {	lost_national = { country = GER value = 2 } }
		control = { province = 56 data = GER } # Paris
		NOT = { war = { country = GER country = SOV } }
		NOT = { war = { country = GER country = SPA } }
		NOT = { war = { country = GER country = SPR } }
		NOT = { war = { country = GER country = YUG } }
		NOT = { war = { country = GER country = POL } }
		OR = {
			lost_national = { country = FRA value = 90 }
			exists = VIC
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 4
	deathdate = { day = 29 month = december year = 1999 }

	action_a = { #Russian Campaign
		ai_chance = 80
		command = { type = local_setflag which = GERInvadeRussia }
	}
	action_b = { #Launch Sea Lion
		ai_chance = 20
		command = { type = local_setflag which = GERInvadeSpain }
	}
}
################
# Early USA War entry before war with Russia (Cancels Russian Invasion Plan)
#############################################
#event = {
#	id = 20015
#	random = no 
#	country = GER
#	
#	trigger = {
#		ai = yes
#		NOT = { event = 20007 }
#		NOT = {	lost_national = { country = GER value = 2 } }
#		control = { province = 56 data = GER } # Paris
#		war= { country = GER country = USA }
#		war= { country = GER country = ENG }
#		NOT = { war= { country = GER country = SOV } }
#	}
#
#	name = "AI_EVENT"
#	style = 0
#
#	date = { day = 1 month = january year = 1936 }
#	offset = 4
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = { # Load Sea Lion and Hold of Russia
#		command = { type = local_setflag which = GERInvadeSpain }
#		command = { type = sleepevent which = 20007 }
#		command = { type = sleepevent which = 20013 }
#	}
#}
################
# German Change Front to defensive when war with USA and SOV
#############################################
event = {
	id = 20016
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		random = 30
		war = { country = GER country = USA }
		war = { country = GER country = SOV }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 12
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_War_SOV_USA.ai" }
		#command = { type = local_setflag which = max_factor_020 }
		#command = { type = local_clrflag which = max_factor_030 }
		#command = { type = local_clrflag which = max_factor_040 }
	}
}
################
# Germany will no longer garrison beaches in the Baltic when Denmark is taken out
#############################################
event = {
	id = 20017
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		control = { province = 90 data = GER } # Kiel
		NOT = { local_flag = GERBalticGarrison }
		NOT = { local_flag = GERBalticGarrisonRussia }
		OR = {
			alliance = { country = DEN country = GER }
			control = { province = 294 data = GER } # Copenhagen
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 12
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERBalticGarrison }
		command = { type = local_clrflag which = GERBalticGarrisonRussia }
		command = { type = ai which = "switch/GER_Baltic.ai" }
	}
}
################
# Germany re-garrisons the Baltic
#############################################
event = {
	id = 20018
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = GERBalticGarrison
		OR = {
			NOT = { control = { province = 90 data = GER } } # Kiel
			AND = {
				alliance = { country = DEN country = GER }
				NOT = { control = { province = 294 data = DEN } } # Copenhagen
			}
			AND = {
				NOT = { exists = DEN }
				NOT = { control = { province = 294 data = GER } } # Copenhagen
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 12
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_Baltic2.ai" }
		command = { type = local_clrflag which = GERBalticGarrison }
	}
}
################
# Germany will no longer garrison beaches in the Baltic when Denmark is taken out and atwar with Russia
#############################################
event = {
	id = 20019
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = GERBalticGarrison }
		war = { country = SOV country = GER }
		control = { province = 90 data = GER } # Kiel
		OR = {
			alliance = { country = DEN country = GER }
			control = { province = 294 data = GER } # Copenhagen
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 12
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_Baltic_Russia.ai" }
		command = { type = local_setflag which = GERBalticGarrison }		
		command = { type = local_setflag which = GERBalticGarrisonRussia }
	}
}
################
# Germany goes after England when Russian is gone
#############################################
event = {
	id = 20020
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		OR = {
			event = 20007
			event = 20010
		}
		NOT = { war = { country = GER country = SOV } }
		control = { province = 56 data = GER } # Paris
		war = { country = GER country = ENG }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERInvadeSpain }
	}
}
################
# Germany goes on the defensive in first Winter against Russia
#############################################
event = {
	id = 20021
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		event = 20007
		NOT = {	lost_national = { country = GER value = 2 } }
		war = { country = GER country = SOV }
		control = { province = 56 data = GER } # Paris
		OR = {
			month = 10 # November
			AND = {
				month = 0 # January
				NOT = { month = 2 } # March
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_Winter.ai" }
	}
}
################
# Germany goes back on the offensive second year
#############################################
event = {
	id = 20022
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		event = 20021
		war = { country = GER country = SOV }
		NOT = { war = { country = GER country = USA } }
		month = 3 # April
		NOT = { month = 7 } # August
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/GER_Russia_Second_Year.ai" }
	}
}
################
# Germany prepares for war with Poland
#############################################
event = {
	id = 20023
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		atwar = no
		exists = POL
		NOT = { local_flag = GERInvadePoland }
		NOT = { alliance = { country = POL country = GER } }
		NOT = { alliance = { country = POL country = SOV } }
		NOT = { puppet = { country = POL country = GER } }
		NOT = { war = { country = POL country = GER } }
		NOT = { war = { country = AUS country = GER } }
		NOT = { war = { country = CZE country = GER } }
		NOT = { war = { country = SOV country = GER } }		
		OR = {
			AND = {
				local_flag = GERInvadeRussia
				OR = {
					AND = {
						day = 2
						NOT = { day = 3 }
					}
				}
			}
			event = 2040 # Annexation of CZE
			event = 2005 # CZE Refuses claim
			event = 2004 # CZE joins Axis
			AND = {
				event = 2030 # Treaty of Munich
				NOT = { event = 2200  } # CZE response to Treaty of Munich
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERInvadePoland }
		command = { type = ai which = "switch/GER_Fall_CZE.ai" }
	}
}
################
# Germany declares war on Denmark cause allies are in the Baltic
#############################################
event = {
	id = 20024
	random = no 
	country = GER
	
	trigger = {
		ai = yes
		NOT = { ispuppet = GER }
		random = 25
		exists = DEN
		NOT = { war = { country = DEN country = GER } }
		OR = {
			AND = {
				war = { country = FRA country = GER }
				OR = {
					# Baltic
					garrison = { country = FRA province = 2476  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2477  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2478  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2479  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2480  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2481  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2482  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2483  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2484  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2489  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2491  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2492  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2493  type = naval size = 4 area = no }
					garrison = { country = FRA province = 2494  type = naval size = 4 area = no }
				}
			}
			AND = {
				war = { country = ENG country = GER }
				OR = {
					# Baltic
					garrison = { country = ENG province = 2476  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2477  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2478  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2479  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2480  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2481  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2482  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2483  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2484  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2489  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2491  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2492  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2493  type = naval size = 4 area = no }
					garrison = { country = ENG province = 2494  type = naval size = 4 area = no }
				}
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 4
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = war which = DEN }
	}
}

################
# German Sub Patrols AI
#############################################
event = {
	id = 20025
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		day = 1
		NOT = { day = 2 }
		NOT = { local_flag = GERInvadeNorway }
		OR = {
			NOT = { local_flag = GERInvadeEngland }
			AND = {
					local_flag = GERInvadeEngland
					OR = {
						war= { country = GER country = SOV }
						war= { country = GER country = USA }
					}
			}
		}
		OR = {
			NOT = { local_flag = GERSubPatrol }
			AND = {
				month = 0
				NOT = { month = 1 }
			}
			AND = {
				month = 2
				NOT = { month = 3 }
			}
			AND = {
				month = 4
				NOT = { month = 5 }
			}
			AND = {
				month = 6
				NOT = { month = 7 }
			}
			AND = {
				month = 8
				NOT = { month = 9 }
			}
			AND = {
				month = 10
				NOT = { month = 11 }
			}
		}
		OR = {
			war = { country = ENG country = GER }
			war = { country = FRA country = GER }
			war = { country = USA country = GER }
		}
		OR = {
			event = 20004
			control = { province = 56 data = GER } # Paris
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {  # Sub Patrol North Atlantic
		ai_chance = 35
		command = { type = ai which = "switch/GER_Sub_Patrol1.ai" }
		command = { type = local_setflag which = GERSubPatrol }
		command = { type = local_setflag which = GERSubPatrol1 }
		command = { type = local_clrflag which = GERSubPatrol2 }
		command = { type = local_clrflag which = GERSubPatrol3 }
	}
	action_b = {  # Sub Patrol Central Atlantic
		ai_chance = 35
		command = { type = ai which = "switch/GER_Sub_Patrol2.ai" }
		command = { type = local_setflag which = GERSubPatrol }
		command = { type = local_setflag which = GERSubPatrol2 }
		command = { type = local_clrflag which = GERSubPatrol1 }
		command = { type = local_clrflag which = GERSubPatrol3 }
	}
	action_c = {  # Sub Patrol South Atlantic
		ai_chance = 30
		command = { type = ai which = "switch/GER_Sub_Patrol3.ai" }
		command = { type = local_setflag which = GERSubPatrol }
		command = { type = local_setflag which = GERSubPatrol3 }
		command = { type = local_clrflag which = GERSubPatrol2 }
		command = { type = local_clrflag which = GERSubPatrol1 }
		
	}
}
################
# German Air AI Naval portion
#############################################
event = {
	id = 20026
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		atwar = yes
		OR = {
			NOT = { local_flag = GERAirAINaval }
			AND = {
				day = 1
				NOT = { day = 2 }
			}
		}
		# These statements must be false if not the land air AI has priority
		NOT = {
			lost_national = { country = GER value = 2 }
			war = { country = GER country = POL } # Eastern Europe
			war = { country = GER country = CZE }
			war = { country = GER country = HUN }
			war = { country = GER country = ROM }
			war = { country = GER country = YUG }
			war = { country = GER country = GRE }
			war = { country = GER country = LIT }
			war = { country = GER country = LAT }
			war = { country = GER country = EST }
			war = { country = GER country = BUL }
			war = { country = GER country = SOV }
			war = { country = GER country = AUS } # Central Europe
			war = { country = GER country = ITA }
			AND = { 								# LOW COUNTRIES
				war = { country = GER country = HOL }
				NOT = { control = { province = 47 data = GER } } # Amsterdamm
			}
			AND = {
				war = { country = GER country = BEL }
				NOT = { control = { province = 51 data = GER } } # Brussels
			}
			war = { country = GER country = LUX }
			war = { country = GER country = SPR } # Western Europe
			war = { country = GER country = SPA }
			war = { country = GER country = POR }
			war = { country = GER country = VIC }
			AND = {
				war = { country = GER country = FRA }
				NOT = { control = { province = 56 data = GER } } # Paris
				OR = {
					war = { country = GER country = HOL }
					war = { country = GER country = BEL }
				}
			}
		}
		# These statements have to be true for it to load naval AI
		OR = {
			local_flag = GERInvadeEngland
			AND = {
				war = { country = FRA country = GER }
				OR = {
					# Baltic
					garrison = { country = FRA province = 2473  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2474  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2475  type = naval size = 2 area = no }
					garrison = { country = FRA province = 290   type = naval size = 2 area = no }
					garrison = { country = FRA province = 2476  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2477  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2478  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2479  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2480  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2481  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2482  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2483  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2484  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2489  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2491  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2492  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2493  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2494  type = naval size = 2 area = no }
				}
			}
			AND = {
				war = { country = ENG country = GER }
				OR = {
					# Baltic
					garrison = { country = ENG province = 2473  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2474  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2475  type = naval size = 2 area = no }
					garrison = { country = ENG province = 290   type = naval size = 2 area = no }
					garrison = { country = ENG province = 2476  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2477  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2478  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2479  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2480  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2481  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2482  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2483  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2484  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2489  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2491  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2492  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2493  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2494  type = naval size = 2 area = no }
				}
			}
			AND = {
				war = { country = USA country = GER }
				OR = {
					# Baltic
					garrison = { country = USA province = 2473  type = naval size = 2 area = no }
					garrison = { country = USA province = 2474  type = naval size = 2 area = no }
					garrison = { country = USA province = 2475  type = naval size = 2 area = no }
					garrison = { country = USA province = 290   type = naval size = 2 area = no }
					garrison = { country = USA province = 2476  type = naval size = 2 area = no }
					garrison = { country = USA province = 2477  type = naval size = 2 area = no }
					garrison = { country = USA province = 2478  type = naval size = 2 area = no }
					garrison = { country = USA province = 2479  type = naval size = 2 area = no }
					garrison = { country = USA province = 2480  type = naval size = 2 area = no }
					garrison = { country = USA province = 2481  type = naval size = 2 area = no }
					garrison = { country = USA province = 2482  type = naval size = 2 area = no }
					garrison = { country = USA province = 2483  type = naval size = 2 area = no }
					garrison = { country = USA province = 2484  type = naval size = 2 area = no }
					garrison = { country = USA province = 2489  type = naval size = 2 area = no }
					garrison = { country = USA province = 2491  type = naval size = 2 area = no }
					garrison = { country = USA province = 2492  type = naval size = 2 area = no }
					garrison = { country = USA province = 2493  type = naval size = 2 area = no }
					garrison = { country = USA province = 2494  type = naval size = 2 area = no }
				}
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERAirAINaval }
		command = { type = local_clrflag which = GERAirAIStrategic }
		command = { type = local_clrflag which = GERAirAIGround }
		command = { type = ai which = "switch/GER_Air_Naval.ai" }
	}
}
################
# German Air AI Ground portion
#############################################
event = {
	id = 20027
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		atwar = yes
		OR = {
			NOT = { local_flag = GERAirAIGround }
			AND = {
				day = 1
				NOT = { day = 2 }
			}
		}
		# These statements must be false if not the land air AI has priority
		OR = {
			lost_national = { country = GER value = 2 }
			war = { country = GER country = POL } # Eastern Europe
			war = { country = GER country = CZE }
			war = { country = GER country = HUN }
			war = { country = GER country = ROM }
			war = { country = GER country = YUG }
			war = { country = GER country = GRE }
			war = { country = GER country = LIT }
			war = { country = GER country = LAT }
			war = { country = GER country = EST }
			war = { country = GER country = BUL }
			war = { country = GER country = SOV }
			war = { country = GER country = AUS } # Central Europe
			war = { country = GER country = ITA }
			AND = { 								# LOW COUNTRIES
				war = { country = GER country = HOL }
				NOT = { control = { province = 47 data = GER } } # Amsterdamm
			}
			AND = {
				war = { country = GER country = BEL }
				NOT = { control = { province = 51 data = GER } } # Brussels
			}
			war = { country = GER country = LUX }
			war = { country = GER country = SPR } # Western Europe
			war = { country = GER country = SPA }
			war = { country = GER country = POR }
			war = { country = GER country = VIC }
			AND = {
				war = { country = GER country = FRA }
				NOT = { control = { province = 56 data = GER } } # Paris
				OR = {
					war = { country = GER country = HOL }
					war = { country = GER country = BEL }
				}
			}
		}
		# These statements have to be true for it to load naval AI
		NOT = {
			AND = {
				war = { country = FRA country = GER }
				OR = {
					# Baltic
					garrison = { country = FRA province = 2473  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2474  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2475  type = naval size = 2 area = no }
					garrison = { country = FRA province = 290   type = naval size = 2 area = no }
					garrison = { country = FRA province = 2476  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2477  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2478  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2479  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2480  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2481  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2482  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2483  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2484  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2489  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2491  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2492  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2493  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2494  type = naval size = 2 area = no }
				}
			}
			AND = {
				war = { country = ENG country = GER }
				OR = {
					# Baltic
					garrison = { country = ENG province = 2473  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2474  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2475  type = naval size = 2 area = no }
					garrison = { country = ENG province = 290   type = naval size = 2 area = no }
					garrison = { country = ENG province = 2476  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2477  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2478  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2479  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2480  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2481  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2482  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2483  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2484  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2489  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2491  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2492  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2493  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2494  type = naval size = 2 area = no }
				}
			}
			AND = {
				war = { country = USA country = GER }
				OR = {
					# Baltic
					garrison = { country = USA province = 2473  type = naval size = 2 area = no }
					garrison = { country = USA province = 2474  type = naval size = 2 area = no }
					garrison = { country = USA province = 2475  type = naval size = 2 area = no }
					garrison = { country = USA province = 290   type = naval size = 2 area = no }
					garrison = { country = USA province = 2476  type = naval size = 2 area = no }
					garrison = { country = USA province = 2477  type = naval size = 2 area = no }
					garrison = { country = USA province = 2478  type = naval size = 2 area = no }
					garrison = { country = USA province = 2479  type = naval size = 2 area = no }
					garrison = { country = USA province = 2480  type = naval size = 2 area = no }
					garrison = { country = USA province = 2481  type = naval size = 2 area = no }
					garrison = { country = USA province = 2482  type = naval size = 2 area = no }
					garrison = { country = USA province = 2483  type = naval size = 2 area = no }
					garrison = { country = USA province = 2484  type = naval size = 2 area = no }
					garrison = { country = USA province = 2489  type = naval size = 2 area = no }
					garrison = { country = USA province = 2491  type = naval size = 2 area = no }
					garrison = { country = USA province = 2492  type = naval size = 2 area = no }
					garrison = { country = USA province = 2493  type = naval size = 2 area = no }
					garrison = { country = USA province = 2494  type = naval size = 2 area = no }
				}
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_clrflag which = GERAirAINaval }
		command = { type = local_clrflag which = GERAirAIStrategic }
		command = { type = local_setflag which = GERAirAIGround }
		command = { type = ai which = "switch/GER_Air_Ground.ai" }
	}
}
################
# German Air AI Strategic portion
#############################################
event = {
	id = 20028
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		atwar = yes
		OR = {
			NOT = { local_flag = GERAirAIStrategic }
			AND = {
				day = 1
				NOT = { day = 2 }
			}
		}
		# These statements must be false if not the land air AI has priority
		NOT = {
			lost_national = { country = GER value = 2 }
			war = { country = GER country = POL } # Eastern Europe
			war = { country = GER country = CZE }
			war = { country = GER country = HUN }
			war = { country = GER country = ROM }
			war = { country = GER country = YUG }
			war = { country = GER country = GRE }
			war = { country = GER country = LIT }
			war = { country = GER country = LAT }
			war = { country = GER country = EST }
			war = { country = GER country = BUL }
			war = { country = GER country = SOV }
			war = { country = GER country = AUS } # Central Europe
			war = { country = GER country = ITA }
			AND = { 								# LOW COUNTRIES
				war = { country = GER country = HOL }
				NOT = { control = { province = 47 data = GER } } # Amsterdamm
			}
			AND = {
				war = { country = GER country = BEL }
				NOT = { control = { province = 51 data = GER } } # Brussels
			}
			war = { country = GER country = LUX }
			war = { country = GER country = SPR } # Western Europe
			war = { country = GER country = SPA }
			war = { country = GER country = POR }
			war = { country = GER country = VIC }
			AND = {
				war = { country = GER country = FRA }
				NOT = { control = { province = 56 data = GER } } # Paris
				OR = {
					war = { country = GER country = HOL }
					war = { country = GER country = BEL }
				}
			}
		}
		# These statements have to be true for it to load naval AI
		NOT = {
			local_flag = GERInvadeEngland
			AND = {
				war = { country = FRA country = GER }
				OR = {
					# Baltic
					garrison = { country = FRA province = 2473  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2474  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2475  type = naval size = 2 area = no }
					garrison = { country = FRA province = 290   type = naval size = 2 area = no }
					garrison = { country = FRA province = 2476  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2477  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2478  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2479  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2480  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2481  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2482  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2483  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2484  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2489  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2491  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2492  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2493  type = naval size = 2 area = no }
					garrison = { country = FRA province = 2494  type = naval size = 2 area = no }
				}
			}
			AND = {
				war = { country = ENG country = GER }
				OR = {
					# Baltic
					garrison = { country = ENG province = 2473  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2474  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2475  type = naval size = 2 area = no }
					garrison = { country = ENG province = 290   type = naval size = 2 area = no }
					garrison = { country = ENG province = 2476  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2477  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2478  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2479  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2480  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2481  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2482  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2483  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2484  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2489  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2491  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2492  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2493  type = naval size = 2 area = no }
					garrison = { country = ENG province = 2494  type = naval size = 2 area = no }
				}
			}
			AND = {
				war = { country = USA country = GER }
				OR = {
					# Baltic
					garrison = { country = USA province = 2473  type = naval size = 2 area = no }
					garrison = { country = USA province = 2474  type = naval size = 2 area = no }
					garrison = { country = USA province = 2475  type = naval size = 2 area = no }
					garrison = { country = USA province = 290   type = naval size = 2 area = no }
					garrison = { country = USA province = 2476  type = naval size = 2 area = no }
					garrison = { country = USA province = 2477  type = naval size = 2 area = no }
					garrison = { country = USA province = 2478  type = naval size = 2 area = no }
					garrison = { country = USA province = 2479  type = naval size = 2 area = no }
					garrison = { country = USA province = 2480  type = naval size = 2 area = no }
					garrison = { country = USA province = 2481  type = naval size = 2 area = no }
					garrison = { country = USA province = 2482  type = naval size = 2 area = no }
					garrison = { country = USA province = 2483  type = naval size = 2 area = no }
					garrison = { country = USA province = 2484  type = naval size = 2 area = no }
					garrison = { country = USA province = 2489  type = naval size = 2 area = no }
					garrison = { country = USA province = 2491  type = naval size = 2 area = no }
					garrison = { country = USA province = 2492  type = naval size = 2 area = no }
					garrison = { country = USA province = 2493  type = naval size = 2 area = no }
					garrison = { country = USA province = 2494  type = naval size = 2 area = no }
				}
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_clrflag which = GERAirAINaval }
		command = { type = local_setflag which = GERAirAIStrategic }
		command = { type = local_clrflag which = GERAirAIGround }
		command = { type = ai which = "switch/GER_Air_Strategic.ai" }
	}
}
################
# Germany sends Italy help
#############################################
event = {
	id = 20029
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = GERDefendItaly }
		alliance = { country = ITA country = GER }
		NOT = { lost_national = { country = GER value = 2 } }
		OR = {
			AND = { # Means they attacked Italy
				lost_national = { country = ITA value = 2 }
				control = { province = 534 data = ITA } # Sardinia
			}
			AND = { # Means they attacked Italy
				lost_national = { country = ITA value = 10 }
				NOT = { control = { province = 534 data = ITA } }# Sardinia
			}
			AND = { # Means they are preparing to attack Italy
				# Libya
				NOT = { control = { province = 932 data = ITA } }
				NOT = { control = { province = 924 data = ITA } }
				NOT = { control = { province = 919 data = ITA } }
			}
			
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERDefendItaly }
		command = { type = ai which = "switch/GER_ITA_Defense.ai" }
	}
}
################
# Germany pulls its help from Italy help
#############################################
event = {
	id = 20030
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = GERDefendItaly
		alliance = { country = ITA country = GER }
		OR = {
			lost_national = { country = GER value = 2 }
			NOT = {
				AND = { # Means they attacked Italy
					lost_national = { country = ITA value = 2 }
					control = { province = 534 data = ITA } # Sardinia
				}
				AND = { # Means they attacked Italy
					lost_national = { country = ITA value = 10 }
					NOT = { control = { province = 534 data = ITA } }# Sardinia
				}
				AND = { # Means they are preparing to attack Italy
					# Libya
					NOT = { control = { province = 932 data = ITA } }
					NOT = { control = { province = 924 data = ITA } }
					NOT = { control = { province = 919 data = ITA } }
				}
				
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_clrflag which = GERDefendItaly }
		command = { type = ai which = "switch/GER_ITA_Recall_Defense.ai" }
	}
}
################
# Germany cancels Sea Lion and goes after Russia
#############################################
event = {
	id = 20031
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		exists = SOV
		local_flag = GERInvadeEngland
		control = { province = 56 data = GER } # Paris
		NOT = { event = 2024 } # Bitter Peace
		NOT = { lost_national = { country = GER value = 2 } }
		NOT = { war = { country = SPR country = GER } }
		NOT = { war = { country = SPA country = GER } }
		NOT = { war = { country = YUG country = GER } }
		NOT = { war = { country = USA country = GER } }
		NOT = { war = { country = POL country = GER } }
		NOT = { war = { country = HUN country = GER } }
		NOT = { war = { country = ITA country = GER } }
		NOT = { war = { country = ROM country = GER } }
		OR = {
			NOT = { transport = { country = GER value = 4 } } # >= 4 transport
			AND = {
				NOT = { control = { province = 5 data = ENG } }
				NOT = { control = { province = 6 data = ENG } }
				NOT = { control = { province = 3 data = ENG } }
				NOT = { control = { province = 7 data = ENG } }
				NOT = { control = { province = 8 data = ENG } }
				NOT = { control = { province = 9 data = ENG } }
				NOT = { control = { province = 10 data = ENG } }
				NOT = { control = { province = 11 data = ENG } }
				NOT = { control = { province = 12 data = ENG } }
				NOT = { control = { province = 13 data = ENG } }
				NOT = { control = { province = 14 data = ENG } }
				NOT = { control = { province = 15 data = ENG } }
				NOT = { control = { province = 16 data = ENG } }
				NOT = { control = { province = 17 data = ENG } }
				NOT = { control = { province = 19 data = ENG } }
				NOT = { control = { province = 22 data = ENG } }
				NOT = { control = { province = 20 data = ENG } }
				NOT = { control = { province = 21 data = ENG } }
				NOT = { control = { province = 23 data = ENG } }
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERInvadeRussia }
		command = { type = local_clrflag which = GERInvadeSpain }
		command = { type = local_clrflag which = GERInvadeEngland }		
	}
}
################
# Spanish invasion setup and Sea Lion
#############################################
event = {
	id = 20032
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = GERInvadeEngland }
		local_flag = GERInvadeSpain
		OR = {
			AND = {
				NOT = { exists = SPR }
				exists = SPA
			}
			AND = {
				NOT = { exists = SPR }
				NOT = { exists = SPA }
			}
			AND = {
				war = { country = SPR country = SPA }
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERInvadeEngland }
		command = { type = local_clrflag which = GERInvadeSpain }
		command = { type = ai which = "switch/GER_Sealion.ai" }
	}
}
event = {
	id = 20033
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		exists = SPR
		NOT = { local_flag = GERInvadeEngland }
		local_flag = GERInvadeSpain
		day = 2
		NOT = { day = 3 }
		exists = VIC
		NOT = { war = { country = SPR country = GER } }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERInvadeSpain }
		command = { type = local_setflag which = GERInvadeEngland }
		command = { type = ai which = "switch/GER_SPR_Buildup_VIC.ai" }
	}
}
event = {
	id = 20034
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		exists = SPR
		NOT = { local_flag = GERInvadeEngland }
		local_flag = GERInvadeSpain
		day = 2
		NOT = { day = 3 }
		NOT = { exists = VIC }
		NOT = { war = { country = SPR country = GER } }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_setflag which = GERInvadeSpain }
		command = { type = local_setflag which = GERInvadeEngland }
		command = { type = ai which = "switch/GER_SPR_Buildup.ai" }
	}
}
event = {
	id = 20035
	random = no 
	country = GER

	trigger = {
		ai = yes
		exists = SPR
		local_flag = GERInvadeEngland
		local_flag = GERInvadeSpain
		day = 1
		NOT = { day = 2 }
		OR = {
			war = { country = SPR country = GER }
			AND = {
				month = 3 # March
				NOT = {	month = 4 } # April
				random = 10
			}
			AND = {
				month = 3 # April
				NOT = {	month = 4 } # May
				random = 20
			}
			AND = {
				month = 4 # May
				NOT = {	month = 5 } # June
				random = 40
			}
			AND = {
				month = 5 # June
				NOT = {	month = 6 } # July
				random = 80
			}
			AND = {
				month = 6 # July
				NOT = {	month = 9 } # October
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = local_clrflag which = GERInvadeEngland }
		command = { type = ai which = "switch/GER_SPR.ai" }
		command = { type = sleepevent which = 20033 }
		command = { type = sleepevent which = 20034 }
		command = { type = war which = SPR }
	}
}

################
# German Military Building AI
#############################################
# Building Style Flags
#	GERBuildLand			= Build heavy on the land troops with focus on Subs
#	GERBuildMix				= Build heavy on the land troops with focus on armor
#	GERBuildStandard		= Standard Build when manpower is too low for high manpower/icd units
#	GERBuildNavy			= Build Navy when preparing to attack the UK and USA # not used any longer
################
event = {
	id = 20054
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		technology = 2220 # 1938 sp_art
		NOT = { local_flag = ger_build_sp_art }
	}

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	name = "AI_EVENT"
	style = 0

	action_a = {
		command = { type = ai which = "switch/ger_build_sp_art.ai" }
		command = { type = local_setflag which = ger_build_sp_art }
		#command = { type = local_setflag which = max_factor_020 }
		#command = { type = local_clrflag which = max_factor_030 }
		#command = { type = local_clrflag which = max_factor_040 }
	}
}
################
# German Land Building AI
#############################################
event = { 
	id = 20036
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		NOT = { technology = 7210 } # 1948 Nuclear Sub
		NOT = { local_flag = ger_build_land_1936 }
		OR = {
			atwar = yes
			local_flag = ger_build_sp_art # 1938 sp_art
		}
		OR = {
			AND = {
				manpower = 30
				NOT = { army = 5 }
			}
			AND = {
				manpower = 60
				NOT = { army = 10 }
			}
			AND = {
				manpower = 90
				NOT = { army = 15 }
			}
			AND = {
				manpower = 120
				NOT = { army = 20 }
			}
			AND = {
				manpower = 150
				NOT = { army = 25 }
			}
			AND = {
				manpower = 180
				NOT = { army = 30 }
			}
			AND = {
				manpower = 210
				NOT = { army = 35 }
			}
			AND = {
				manpower = 240
				NOT = { army = 40 }
			}
			AND = {
				manpower = 270
				NOT = { army = 45 }
			}
			AND = {
				manpower = 300
				NOT = { army = 50 }
			}
			AND = {
				manpower = 330
				NOT = { army = 55 }
			}
			AND = {
				manpower = 360
				NOT = { army = 60 }
			}
			AND = {
				manpower = 390
				NOT = { army = 65 }
			}
			AND = {
				manpower = 420
				NOT = { army = 70 }
			}
			AND = {
				manpower = 450
				NOT = { army = 75 }
			}
			AND = {
				manpower = 480
				NOT = { army = 80 }
			}
			AND = {
				manpower = 510
				NOT = { army = 85 }
			}
			AND = {
				manpower = 540
				NOT = { army = 90 }
			}
			AND = {
				manpower = 570
				NOT = { army = 95 }
			}
			AND = {
				manpower = 600
				NOT = { army = 100 }
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/ger_build_land.ai" }
		command = { type = local_setflag which = ger_build_land_1936 }
		command = { type = local_clrflag which = ger_build_land_1948 }
		command = { type = local_clrflag which = ger_build_mix_1936 }
		command = { type = local_clrflag which = ger_build_mix_1948 }
		command = { type = local_clrflag which = ger_build_standard_1936 }
		command = { type = local_clrflag which = ger_build_standard_1948 }
	}
}

event = { 
	id = 20037
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		technology = 7210 # 1948 Nuclear Sub
		NOT = { local_flag = ger_build_land_1948 }
		OR = {
			atwar = yes
			local_flag = ger_build_sp_art # 1938 sp_art
		}
		OR = {
			AND = {
				manpower = 30
				NOT = { army = 5 }
			}
			AND = {
				manpower = 60
				NOT = { army = 10 }
			}
			AND = {
				manpower = 90
				NOT = { army = 15 }
			}
			AND = {
				manpower = 120
				NOT = { army = 20 }
			}
			AND = {
				manpower = 150
				NOT = { army = 25 }
			}
			AND = {
				manpower = 180
				NOT = { army = 30 }
			}
			AND = {
				manpower = 210
				NOT = { army = 35 }
			}
			AND = {
				manpower = 240
				NOT = { army = 40 }
			}
			AND = {
				manpower = 270
				NOT = { army = 45 }
			}
			AND = {
				manpower = 300
				NOT = { army = 50 }
			}
			AND = {
				manpower = 330
				NOT = { army = 55 }
			}
			AND = {
				manpower = 360
				NOT = { army = 60 }
			}
			AND = {
				manpower = 390
				NOT = { army = 65 }
			}
			AND = {
				manpower = 420
				NOT = { army = 70 }
			}
			AND = {
				manpower = 450
				NOT = { army = 75 }
			}
			AND = {
				manpower = 480
				NOT = { army = 80 }
			}
			AND = {
				manpower = 510
				NOT = { army = 85 }
			}
			AND = {
				manpower = 540
				NOT = { army = 90 }
			}
			AND = {
				manpower = 570
				NOT = { army = 95 }
			}
			AND = {
				manpower = 600
				NOT = { army = 100 }
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/ger_build_land_1948.ai" }
		command = { type = local_clrflag which = ger_build_land_1936 }
		command = { type = local_setflag which = ger_build_land_1948 }
		command = { type = local_clrflag which = ger_build_mix_1936 }
		command = { type = local_clrflag which = ger_build_mix_1948 }
		command = { type = local_clrflag which = ger_build_standard_1936 }
		command = { type = local_clrflag which = ger_build_standard_1948 }
	}
}

################
# German Mix Building AI
#############################################
event = { 
	id = 20038
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		NOT = { technology = 7210 } # 1948 Nuclear Sub
		NOT = { local_flag = ger_build_mix_1936 }
		OR = {
			atwar = yes
			local_flag = ger_build_sp_art # 1938 sp_art
		}
		OR = {
			AND = {
				army = 5 
				NOT = { manpower = 30 }
			}
			AND = {
				army = 10 
				NOT = { manpower = 60 }
			}
			AND = {
				army = 15 
				NOT = { manpower = 90 }
			}
			AND = {
				army = 20 
				NOT = { manpower = 120 }
			}
			AND = {
				army = 25 
				NOT = { manpower = 150 }
			}
			AND = {
				army = 30 
				NOT = { manpower = 180 }
			}
			AND = {
				army = 35 
				NOT = { manpower = 210 }
			}
			AND = {
				army = 40 
				NOT = { manpower = 240 }
			}
			AND = {
				army = 45 
				NOT = { manpower = 270 }
			}
			AND = {
				army = 50 
				NOT = { manpower = 300 }
			}
			AND = {
				army = 55 
				NOT = { manpower = 330 }
			}
			AND = {
				army = 60 
				NOT = { manpower = 360 }
			}
			AND = {
				army = 65 
				NOT = { manpower = 390 }
			}
			AND = {
				army = 70 
				NOT = { manpower = 420 }
			}
			AND = {
				army = 75 
				NOT = { manpower = 450 }
			}
			AND = {
				army = 80 
				NOT = { manpower = 480 }
			}
			AND = {
				army = 85 
				NOT = { manpower = 510 }
			}
			AND = {
				army = 90 
				NOT = { manpower = 540 }
			}
			AND = {
				army = 95 
				NOT = { manpower = 570 }
			}
			army = 100
		}
		OR = {
			AND = {
				manpower = 20
				NOT = { army = 5 }
			}
			AND = {
				manpower = 40
				NOT = { army = 10 }
			}
			AND = {
				manpower = 60
				NOT = { army = 15 }
			}
			AND = {
				manpower = 80
				NOT = { army = 20 }
			}
			AND = {
				manpower = 100
				NOT = { army = 25 }
			}
			AND = {
				manpower = 120
				NOT = { army = 30 }
			}
			AND = {
				manpower = 140
				NOT = { army = 35 }
			}
			AND = {
				manpower = 160
				NOT = { army = 40 }
			}
			AND = {
				manpower = 180
				NOT = { army = 45 }
			}
			AND = {
				manpower = 200
				NOT = { army = 50 }
			}
			AND = {
				manpower = 220
				NOT = { army = 55 }
			}
			AND = {
				manpower = 240
				NOT = { army = 60 }
			}
			AND = {
				manpower = 260
				NOT = { army = 65 }
			}
			AND = {
				manpower = 280
				NOT = { army = 70 }
			}
			AND = {
				manpower = 300
				NOT = { army = 75 }
			}
			AND = {
				manpower = 320
				NOT = { army = 80 }
			}
			AND = {
				manpower = 340
				NOT = { army = 85 }
			}
			AND = {
				manpower = 360
				NOT = { army = 90 }
			}
			AND = {
				manpower = 380
				NOT = { army = 95 }
			}
			AND = {
				manpower = 400
				NOT = { army = 100 }
			}
			AND = {
				manpower = 420
				NOT = { army = 105 }
			}
			AND = {
				manpower = 440
				NOT = { army = 110 }
			}
			AND = {
				manpower = 460
				NOT = { army = 115 }
			}
			AND = {
				manpower = 480
				NOT = { army = 120 }
			}
			AND = {
				manpower = 500
				NOT = { army = 125 }
			}
			AND = {
				manpower = 520
				NOT = { army = 130 }
			}
			AND = {
				manpower = 540
				NOT = { army = 135 }
			}
			AND = {
				manpower = 560
				NOT = { army = 140 }
			}
			AND = {
				manpower = 580
				NOT = { army = 145 }
			}
			AND = {
				manpower = 600
				NOT = { army = 150 }
			}
			AND = {
				manpower = 620
				NOT = { army = 155 }
			}
			AND = {
				manpower = 640
				NOT = { army = 160 }
			}
			AND = {
				manpower = 660
				NOT = { army = 165 }
			}
			AND = {
				manpower = 680
				NOT = { army = 170 }
			}
			AND = {
				manpower = 700
				NOT = { army = 175 }
			}
			AND = {
				manpower = 720
				NOT = { army = 180 }
			}
			AND = {
				manpower = 740
				NOT = { army = 185 }
			}
			AND = {
				manpower = 760
				NOT = { army = 190 }
			}
			AND = {
				manpower = 780
				NOT = { army = 195 }
			}
			AND = {
				manpower = 800
				NOT = { army = 200 }
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/ger_build_mix.ai" }
		command = { type = local_clrflag which = ger_build_land_1936 }
		command = { type = local_clrflag which = ger_build_land_1948 }
		command = { type = local_setflag which = ger_build_mix_1936 }
		command = { type = local_clrflag which = ger_build_mix_1948 }
		command = { type = local_clrflag which = ger_build_standard_1936 }
		command = { type = local_clrflag which = ger_build_standard_1948 }
	}
}

event = { 
	id = 20039
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		technology = 7210 # 1948 Nuclear Sub
		NOT = { local_flag = ger_build_mix_1948 }
		OR = {
			atwar = yes
			local_flag = ger_build_sp_art # 1938 sp_art
		}
		OR = {
			AND = {
				army = 5 
				NOT = { manpower = 30 }
			}
			AND = {
				army = 10 
				NOT = { manpower = 60 }
			}
			AND = {
				army = 15 
				NOT = { manpower = 90 }
			}
			AND = {
				army = 20 
				NOT = { manpower = 120 }
			}
			AND = {
				army = 25 
				NOT = { manpower = 150 }
			}
			AND = {
				army = 30 
				NOT = { manpower = 180 }
			}
			AND = {
				army = 35 
				NOT = { manpower = 210 }
			}
			AND = {
				army = 40 
				NOT = { manpower = 240 }
			}
			AND = {
				army = 45 
				NOT = { manpower = 270 }
			}
			AND = {
				army = 50 
				NOT = { manpower = 300 }
			}
			AND = {
				army = 55 
				NOT = { manpower = 330 }
			}
			AND = {
				army = 60 
				NOT = { manpower = 360 }
			}
			AND = {
				army = 65 
				NOT = { manpower = 390 }
			}
			AND = {
				army = 70 
				NOT = { manpower = 420 }
			}
			AND = {
				army = 75 
				NOT = { manpower = 450 }
			}
			AND = {
				army = 80 
				NOT = { manpower = 480 }
			}
			AND = {
				army = 85 
				NOT = { manpower = 510 }
			}
			AND = {
				army = 90 
				NOT = { manpower = 540 }
			}
			AND = {
				army = 95 
				NOT = { manpower = 570 }
			}
			army = 100
		}
		OR = {
			AND = {
				manpower = 20
				NOT = { army = 5 }
			}
			AND = {
				manpower = 40
				NOT = { army = 10 }
			}
			AND = {
				manpower = 60
				NOT = { army = 15 }
			}
			AND = {
				manpower = 80
				NOT = { army = 20 }
			}
			AND = {
				manpower = 100
				NOT = { army = 25 }
			}
			AND = {
				manpower = 120
				NOT = { army = 30 }
			}
			AND = {
				manpower = 140
				NOT = { army = 35 }
			}
			AND = {
				manpower = 160
				NOT = { army = 40 }
			}
			AND = {
				manpower = 180
				NOT = { army = 45 }
			}
			AND = {
				manpower = 200
				NOT = { army = 50 }
			}
			AND = {
				manpower = 220
				NOT = { army = 55 }
			}
			AND = {
				manpower = 240
				NOT = { army = 60 }
			}
			AND = {
				manpower = 260
				NOT = { army = 65 }
			}
			AND = {
				manpower = 280
				NOT = { army = 70 }
			}
			AND = {
				manpower = 300
				NOT = { army = 75 }
			}
			AND = {
				manpower = 320
				NOT = { army = 80 }
			}
			AND = {
				manpower = 340
				NOT = { army = 85 }
			}
			AND = {
				manpower = 360
				NOT = { army = 90 }
			}
			AND = {
				manpower = 380
				NOT = { army = 95 }
			}
			AND = {
				manpower = 400
				NOT = { army = 100 }
			}
			AND = {
				manpower = 420
				NOT = { army = 105 }
			}
			AND = {
				manpower = 440
				NOT = { army = 110 }
			}
			AND = {
				manpower = 460
				NOT = { army = 115 }
			}
			AND = {
				manpower = 480
				NOT = { army = 120 }
			}
			AND = {
				manpower = 500
				NOT = { army = 125 }
			}
			AND = {
				manpower = 520
				NOT = { army = 130 }
			}
			AND = {
				manpower = 540
				NOT = { army = 135 }
			}
			AND = {
				manpower = 560
				NOT = { army = 140 }
			}
			AND = {
				manpower = 580
				NOT = { army = 145 }
			}
			AND = {
				manpower = 600
				NOT = { army = 150 }
			}
			AND = {
				manpower = 620
				NOT = { army = 155 }
			}
			AND = {
				manpower = 640
				NOT = { army = 160 }
			}
			AND = {
				manpower = 660
				NOT = { army = 165 }
			}
			AND = {
				manpower = 680
				NOT = { army = 170 }
			}
			AND = {
				manpower = 700
				NOT = { army = 175 }
			}
			AND = {
				manpower = 720
				NOT = { army = 180 }
			}
			AND = {
				manpower = 740
				NOT = { army = 185 }
			}
			AND = {
				manpower = 760
				NOT = { army = 190 }
			}
			AND = {
				manpower = 780
				NOT = { army = 195 }
			}
			AND = {
				manpower = 800
				NOT = { army = 200 }
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/ger_build_mix_1948.ai" }
		command = { type = local_clrflag which = ger_build_land_1936 }
		command = { type = local_clrflag which = ger_build_land_1948 }
		command = { type = local_clrflag which = ger_build_mix_1936 }
		command = { type = local_setflag which = ger_build_mix_1948 }
		command = { type = local_clrflag which = ger_build_standard_1936 }
		command = { type = local_clrflag which = ger_build_standard_1948 }
	}
}
################
# German Standard Building AI
#############################################

event = { 
	id = 20040
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		NOT = { technology = 7210 } # 1948 Nuclear Sub
		NOT = { local_flag = ger_build_standard_1936 }
		OR = {
			atwar = yes
			local_flag = ger_build_sp_art # 1938 sp_art
		}
		OR = {
			AND = {
				army = 5 
				NOT = { manpower = 20 }
			}
			AND = {
				army = 10 
				NOT = { manpower = 40 }
			}
			AND = {
				army = 15 
				NOT = { manpower = 60 }
			}
			AND = {
				army = 20 
				NOT = { manpower = 80 }
			}
			AND = {
				army = 25 
				NOT = { manpower = 100 }
			}
			AND = {
				army = 30 
				NOT = { manpower = 120 }
			}
			AND = {
				army = 35 
				NOT = { manpower = 140 }
			}
			AND = {
				army = 40 
				NOT = { manpower = 160 }
			}
			AND = {
				army = 45 
				NOT = { manpower = 180 }
			}
			AND = {
				army = 50 
				NOT = { manpower = 200 }
			}
			AND = {
				army = 55 
				NOT = { manpower = 220 }
			}
			AND = {
				army = 60 
				NOT = { manpower = 240 }
			}
			AND = {
				army = 65 
				NOT = { manpower = 260 }
			}
			AND = {
				army = 70 
				NOT = { manpower = 280 }
			}
			AND = {
				army = 75 
				NOT = { manpower = 300 }
			}
			AND = {
				army = 80 
				NOT = { manpower = 320 }
			}
			AND = {
				army = 85 
				NOT = { manpower = 340 }
			}
			AND = {
				army = 90 
				NOT = { manpower = 360 }
			}
			AND = {
				army = 95 
				NOT = { manpower = 380 }
			}
			AND = {
				army = 100 
				NOT = { manpower = 400 }
			}
			AND = {
				army = 105 
				NOT = { manpower = 420 }
			}
			AND = {
				army = 110 
				NOT = { manpower = 440 }
			}
			AND = {
				army = 115 
				NOT = { manpower = 460 }
			}
			AND = {
				army = 120 
				NOT = { manpower = 480 }
			}
			AND = {
				army = 125 
				NOT = { manpower = 500 }
			}
			AND = {
				army = 130 
				NOT = { manpower = 520 }
			}
			AND = {
				army = 135 
				NOT = { manpower = 540 }
			}
			AND = {
				army = 140 
				NOT = { manpower = 560 }
			}
			AND = {
				army = 145 
				NOT = { manpower = 580 }
			}
			AND = {
				army = 150 
				NOT = { manpower = 600 }
			}
			AND = {
				army = 155 
				NOT = { manpower = 620 }
			}
			AND = {
				army = 160 
				NOT = { manpower = 640 }
			}
			AND = {
				army = 165 
				NOT = { manpower = 660 }
			}
			AND = {
				army = 170 
				NOT = { manpower = 680 }
			}
			AND = {
				army = 175 
				NOT = { manpower = 700 }
			}
			AND = {
				army = 180 
				NOT = { manpower = 720 }
			}
			AND = {
				army = 185 
				NOT = { manpower = 740 }
			}
			AND = {
				army = 190 
				NOT = { manpower = 760 }
			}
			AND = {
				army = 195 
				NOT = { manpower = 780 }
			}
			army = 200
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/ger_build_standard.ai" }
		command = { type = local_clrflag which = ger_build_land_1936 }
		command = { type = local_clrflag which = ger_build_land_1948 }
		command = { type = local_clrflag which = ger_build_mix_1936 }
		command = { type = local_clrflag which = ger_build_mix_1948 }
		command = { type = local_setflag which = ger_build_standard_1936 }
		command = { type = local_clrflag which = ger_build_standard_1948 }
	}
}

event = { 
	id = 20041
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		technology = 7210 # 1948 Nuclear Sub
		NOT = { local_flag = ger_build_standard_1948 }
		OR = {
			atwar = yes
			local_flag = ger_build_sp_art # 1938 sp_art
		}
		OR = {
			AND = {
				army = 5 
				NOT = { manpower = 20 }
			}
			AND = {
				army = 10 
				NOT = { manpower = 40 }
			}
			AND = {
				army = 15 
				NOT = { manpower = 60 }
			}
			AND = {
				army = 20 
				NOT = { manpower = 80 }
			}
			AND = {
				army = 25 
				NOT = { manpower = 100 }
			}
			AND = {
				army = 30 
				NOT = { manpower = 120 }
			}
			AND = {
				army = 35 
				NOT = { manpower = 140 }
			}
			AND = {
				army = 40 
				NOT = { manpower = 160 }
			}
			AND = {
				army = 45 
				NOT = { manpower = 180 }
			}
			AND = {
				army = 50 
				NOT = { manpower = 200 }
			}
			AND = {
				army = 55 
				NOT = { manpower = 220 }
			}
			AND = {
				army = 60 
				NOT = { manpower = 240 }
			}
			AND = {
				army = 65 
				NOT = { manpower = 260 }
			}
			AND = {
				army = 70 
				NOT = { manpower = 280 }
			}
			AND = {
				army = 75 
				NOT = { manpower = 300 }
			}
			AND = {
				army = 80 
				NOT = { manpower = 320 }
			}
			AND = {
				army = 85 
				NOT = { manpower = 340 }
			}
			AND = {
				army = 90 
				NOT = { manpower = 360 }
			}
			AND = {
				army = 95 
				NOT = { manpower = 380 }
			}
			AND = {
				army = 100 
				NOT = { manpower = 400 }
			}
			AND = {
				army = 105 
				NOT = { manpower = 420 }
			}
			AND = {
				army = 110 
				NOT = { manpower = 440 }
			}
			AND = {
				army = 115 
				NOT = { manpower = 460 }
			}
			AND = {
				army = 120 
				NOT = { manpower = 480 }
			}
			AND = {
				army = 125 
				NOT = { manpower = 500 }
			}
			AND = {
				army = 130 
				NOT = { manpower = 520 }
			}
			AND = {
				army = 135 
				NOT = { manpower = 540 }
			}
			AND = {
				army = 140 
				NOT = { manpower = 560 }
			}
			AND = {
				army = 145 
				NOT = { manpower = 580 }
			}
			AND = {
				army = 150 
				NOT = { manpower = 600 }
			}
			AND = {
				army = 155 
				NOT = { manpower = 620 }
			}
			AND = {
				army = 160 
				NOT = { manpower = 640 }
			}
			AND = {
				army = 165 
				NOT = { manpower = 660 }
			}
			AND = {
				army = 170 
				NOT = { manpower = 680 }
			}
			AND = {
				army = 175 
				NOT = { manpower = 700 }
			}
			AND = {
				army = 180 
				NOT = { manpower = 720 }
			}
			AND = {
				army = 185 
				NOT = { manpower = 740 }
			}
			AND = {
				army = 190 
				NOT = { manpower = 760 }
			}
			AND = {
				army = 195 
				NOT = { manpower = 780 }
			}
			army = 200
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/ger_build_standard_1948.ai" }
		command = { type = local_clrflag which = ger_build_land_1936 }
		command = { type = local_clrflag which = ger_build_land_1948 }
		command = { type = local_clrflag which = ger_build_mix_1936 }
		command = { type = local_clrflag which = ger_build_mix_1948 }
		command = { type = local_clrflag which = ger_build_standard_1936 }
		command = { type = local_setflag which = ger_build_standard_1948 }
	}
}
################
# German Navy Building AI
#############################################
#event = { 
#	id = 20039
#	random = no 
#	country = GER
#	persistent = yes
#
#	trigger = {
#		ai = yes
#		NOT = { local_flag = GERBuildnavy }
#		atwar = yes
#		land_percentage = { country = SOV value = 0.6 }
#		land_percentage = { country = USA value = 1.0 }
#		land_percentage = { country = ENG value = 1.0 }
#		OR = {
#			local_flag = GERInvadeSpain
#			local_flag = GERInvadeEngland
#		}
#	}
#
#	name = "AI_EVENT"
#	style = 0
#
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = local_clrflag which = GERBuildStandard }
#		command = { type = local_clrflag which = GERBuildMix }
#		command = { type = local_clrflag which = GERBuildLand }
#		command = { type = local_setflag which = GERBuildNavy }
#		command = { type = ai which = "switch/GER_Build_Navy.ai" }
#	}
#}
################
# Germany builds submarines
#############################################
#event = {
#	id = 20040
#	random = no
#	country = GER
#	persistent = yes
#
#	trigger = {
#		ai = yes
#		NOT = { lost_national = { country = GER value = 1 } }
#		OR = {
#			AND = {
#				atwar = no
#				NOT = { submarine = { country = GER value = 10 } }
#			}
#			AND = {
#				atwar = yes
#				NOT = { submarine = { country = GER value = 20 } }
#			}
#		}
#	}
#
#	name = "AI_EVENT"
#	style = 0
#
#	date = { day = 1 month = january year = 1936 }
#	offset = 7
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = build_division which = submarine }
#	}
#}
################
# Germany builds Fortifications on the French Border
#############################################
#event = {
#	id = 20041
#	random = no
#	country = GER
#
#	trigger = {
#		ai = yes
#		atwar = no
#		technology = 5100
#		control = { province = 74 data = GER } # Saarbrucken
#		control = { province = 314 data = GER } # Stuttgart
#		control = { province = 315 data = GER } # Freiburg
#	}
#
#	name = "AI_EVENT"
#	style = 0
#
#	date = { day = 1 month = january year = 1936 }
#	offset = 7
#	deathdate = { day = 29 month = december year = 1939 }
#
#	action_a = {
#		command = { type = ai which = "switch/GER_Build_Fort.ai" }
#		command = { type = local_clrflag which = max_factor_020 }
#		command = { type = local_clrflag which = max_factor_030 }
#		command = { type = local_setflag which = max_factor_040 }
#	}
#}
################
# Germany builds transports
#############################################
#event = {
#	id = 20042
#	random = no
#	country = GER
#	persistent = yes
#
#	trigger = {
#		ai = yes
#		atwar = yes
#		NOT = { transport = { country = GER value = 3 } }
#		NOT = { lost_national = { country = GER value = 2 } }
#	}
#
#	name = "AI_EVENT"
#	style = 0
#
#	date = { day = 1 month = january year = 1936 }
#	offset = 7
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = build_division which = transport }
#	}
#}
################
# German AI Slider manipulation
#
#	Free Market
#############################################
event = { # Free Market
	id = 20043
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = free_market value = 1}
		government = democratic
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = free_market value = 1 }
	}
}
event = { # Free Market
	id = 20044
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = free_market value = -1}
		OR = {
			government = fascist
			government = communist
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = free_market value = -1 }
	}
}
################
#	Standing Army
#############################################
event = { # Standing Army
	id = 20045
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = professional_army value = 1}
		AND = {
			#NOT = { domestic = { type = professional_army value = 9 } }
			OR = {
				technology = 6220 # Spearhead Doctrine
				AND = {
					technology = 6300 # Human Wave Doctrine
					OR = {
						ideology = nazi
						ideology = fascist
						ideology = leninist
						ideology = stalinist
					}
				}
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = professional_army value = 1 }
	}
}
event = { # Standing Army
	id = 20046
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = professional_army value = -1}
		AND = {
			domestic = { type = professional_army value = 0 }
			OR = {
				technology = 6020 # Superior Firepower Doctrine
				technology = 6030 # Grand Battleplan Doctrine
				AND = {
					technology = 6300 # Human Wave Doctrine
					NOT = {
						ideology = nazi
						ideology = fascist
						ideology = leninist
						ideology = stalinist
					}
				}
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = professional_army value = -1 }
	}
}
################
#	Open Society
#############################################
event = { # Open Society
	id = 20047
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = freedom value = -1}
		AND = {
			domestic = { type = freedom value = 0 }
			OR = {
				government = fascist
				government = communist
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = freedom value = -1 }
	}
}
event = { # Open Society
	id = 20048
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = freedom value = 1}
		AND = {
			#NOT = { domestic = { type = freedom value = 9 } }
			government = democratic
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = freedom value = 1 }
	}
}
################
#	Hawk Lobby
#############################################
event = { # Hawk Lobby
	id = 20049
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = defense_lobby value = 1}
		AND = {
			#NOT = { domestic = { type = defense_lobby value = 9 } }
			OR = {
				ideology = nazi
				ideology = fascist
				ideology = leninist
				ideology = stalinist
				atwar = yes
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = defense_lobby value = 1 }
	}
}
event = { # Hawk Lobby
	id = 20050
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = defense_lobby value = -1}
		AND = {
			#domestic = { type = defense_lobby value = 0 }
			NOT = {
				ideology = nazi
				ideology = fascist
				ideology = leninist
				ideology = stalinist
			}	
			atwar = no
			NOT = { year = 1940 }
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = defense_lobby value = -1 }
	}
}
################
#	Interventionism
#############################################
event = { # Interventionism
	id = 20051
	random = no
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = interventionism value = 1}
		OR = {
			atwar = yes
			AND = {
				#NOT = { domestic = { type = interventionism value = 9 } }
				OR = {
					ideology = nazi
					ideology = fascist
					ideology = leninist
					ideology = stalinist
				}
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = interventionism value = 1 }
	}
}

################
# max factor events by Pang Bingxun
#############################################

# Moved 20054 up to the other military building schemes

#event = {
#	id = 20055
#	random = no
#	country = GER
#	persistent = yes
#
#	trigger = {
#		ai = yes
#		manpower = 500
#		OR = {
#			event = 2030 # The Treaty of Munich
#			atwar = yes
#		}
#		NOT = { local_flag = max_factor_020 }
#	}
#
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	name = "AI_EVENT"
#	style = 0
#
#	action_a = {
#		command = { type = ai which = "switch/max_factor_020.ai" }
#		command = { type = local_setflag which = max_factor_020 }
#		command = { type = local_clrflag which = max_factor_030 }
#		command = { type = local_clrflag which = max_factor_040 }
#	}
#}
#
#event = {
#	id = 20056
#	random = no
#	country = GER
#	persistent = yes
#
#	trigger = {
#		ai = yes
#		NOT = { 
#			manpower = 490
#			local_flag = max_factor_030
#		}
#		manpower = 300
#		OR = {
#			event = 2030 # The Treaty of Munich
#			atwar = yes
#		}
#	}
#
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	name = "AI_EVENT"
#	style = 0
#
#	action_a = {
#		command = { type = ai which = "switch/max_factor_030.ai" }
#		command = { type = local_clrflag which = max_factor_020 }
#		command = { type = local_setflag which = max_factor_030 }
#		command = { type = local_clrflag which = max_factor_040 }
#	}
#}
#
#event = {
#	id = 20057
#	random = no
#	country = GER
#	persistent = yes
#
#	trigger = {
#		ai = yes
#		NOT = { 
#			manpower = 290
#			local_flag = max_factor_040
#		}
#		OR = {
#			event = 2030 # The Treaty of Munich
#			atwar = yes
#		}
#	}
#
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	name = "AI_EVENT"
#	style = 0
#
#	action_a = {
#		command = { type = ai which = "switch/max_factor_040.ai" }
#		command = { type = local_clrflag which = max_factor_020 }
#		command = { type = local_clrflag which = max_factor_030 }
#		command = { type = local_setflag which = max_factor_040 }
#	}
#}

################
# Build oil plants
#############################################

event = { 
	id = 20058
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		technology = 5210 # 1940 synthetic oil
		control = { province = 310 data = GER } # Leipzig
		manpower = 1
		supplies = 3160 # 1000 left
		OR = {
			AND = {
				NOT = { oil = 30000 }
				NOT = { province_building = { province = 310 building = 11 size = 1.99 } }
			}
			AND = {
				NOT = { oil = 27000 }
				NOT = { province_building = { province = 310 building = 11 size = 2.99 } }
			}
			AND = {
				NOT = { oil = 24000 }
				NOT = { province_building = { province = 310 building = 11 size = 3.99 } }
			}
			AND = {
				NOT = { oil = 21000 }
				NOT = { province_building = { province = 310 building = 11 size = 4.99 } }
			}
			AND = {
				NOT = { oil = 18000 }
				NOT = { province_building = { province = 310 building = 11 size = 5.99 } }
			}
			AND = {
				NOT = { oil = 15000 }
				NOT = { province_building = { province = 310 building = 11 size = 6.99 } }
			}
			AND = {
				NOT = { oil = 12000 }
				NOT = { province_building = { province = 310 building = 11 size = 7.99 } }
			}
			AND = {
				NOT = { oil = 9000 }
				NOT = { province_building = { province = 310 building = 11 size = 8.99 } }
			}
			AND = {
				NOT = { oil = 6000 }
				NOT = { province_building = { province = 310 building = 11 size = 9.99 } }
			}
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1996 }

	action_a = {
		command = { type = construct which = synthetic_oil where = 310 value = 1 }
		command = { type = supplies value = -2160 } # 3x180x0.8 ICD
		command = { type = manpowerpool value = -1 }
	}
}

################
# Build rare plants
#############################################

event = { 
	id = 20178
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		technology = 5610 # 1943 synthetic rare
		control = { province = 310 data = GER } # Leipzig
		manpower = 1
		supplies = 3160 # 1000 left
		OR = {
			AND = {
				oil = 50000
				NOT = { rare_materials = 15000 }
				NOT = { province_building = { province = 310 building = 12 size = 0.99 } }
			}
			AND = {
				oil = 100000
				NOT = { rare_materials = 10000 }
				NOT = { province_building = { province = 310 building = 12 size = 1.99 } }
			}
			AND = {
				oil = 150000
				NOT = { rare_materials = 5000 }
				NOT = { province_building = { province = 310 building = 12 size = 2.99 } }
			}
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1996 }

	action_a = {
		command = { type = construct which = synthetic_rares where = 310 value = 1 }
		command = { type = supplies value = -2160 } # 3x180x0.8 ICD
		command = { type = manpowerpool value = -1 }
	}
}

################
# Reinforcements balance events by Pang Bingxun
#############################################

event = { 
	id = 20059
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		NOT = { local_flag = reinforcement_020 }
		NOT = { manpower = 1 }
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/reinforcement_020.ai" }
		command = { type = ai which = "switch/Upgrading_050.ai" }
		command = { type = local_setflag which = reinforcement_020 }
		command = { type = local_clrflag which = reinforcement_050 }
		command = { type = local_clrflag which = Upgrading_000 }
		command = { type = local_clrflag which = Upgrading_035 }
		command = { type = local_setflag which = Upgrading_050 }
	}
}

event = { 
	id = 20060
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		NOT = { local_flag = reinforcement_050 }
		manpower = 3
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ai which = "switch/reinforcement_050.ai" }
		command = { type = ai which = "switch/Upgrading_035.ai" }
		command = { type = local_clrflag which = reinforcement_020 }
		command = { type = local_setflag which = reinforcement_050 }
		command = { type = local_clrflag which = Upgrading_000 }
		command = { type = local_setflag which = Upgrading_035 }
		command = { type = local_clrflag which = Upgrading_050 }
	}
}

event = {
	id = 20065
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = Upgrading_000 }
		atwar = no
		NOT = { technology = 4140 } # 1938 TAC
		NOT = { year = 1939 }
		manpower = 3
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1939 }

	action_a = {
		command = { type = ai which = "switch/Upgrading_000.ai" }
		command = { type = local_setflag which = Upgrading_000 }
		command = { type = local_clrflag which = Upgrading_035 }
		command = { type = local_clrflag which = Upgrading_050 }
	}
}

event = {
	id = 20066
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = Upgrading_035 }
		OR = {
			atwar = yes
			technology = 4140 # 1938 TAC
			year = 1939
		}
		manpower = 3
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1939 }

	action_a = {
		command = { type = ai which = "switch/Upgrading_035.ai" }
		command = { type = local_clrflag which = Upgrading_000 }
		command = { type = local_setflag which = Upgrading_035 }
		command = { type = local_clrflag which = Upgrading_050 }
	}
}

################
# Release Siberia as a puppet
#############################################

event = {
	id = 20061
	random = no
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { exists = SIB }
		control = { province = 1548 data = GER } # Novosibirsk
		NOT = { control = { province = 1155 data = -2 } } 
		NOT = { control = { province = 1156 data = -2 } } 
		NOT = { control = { province = 1157 data = -2 } } 
		NOT = { control = { province = 1158 data = -2 } } 
		NOT = { control = { province = 1159 data = -2 } } 
		NOT = { control = { province = 1160 data = -2 } } 
		NOT = { control = { province = 1161 data = -2 } } 
		NOT = { control = { province = 1162 data = -2 } } 
		NOT = { control = { province = 1163 data = -2 } } # Yakutsk
		NOT = { control = { province = 1164 data = -2 } } 
		NOT = { control = { province = 1165 data = -2 } } 
		NOT = { control = { province = 1383 data = -2 } } 
		NOT = { control = { province = 1384 data = -2 } } 
		NOT = { control = { province = 1412 data = -2 } } 
		NOT = { control = { province = 1413 data = -2 } } 
		NOT = { control = { province = 1414 data = -2 } } 
		NOT = { control = { province = 1415 data = -2 } } 
		NOT = { control = { province = 1416 data = -2 } } 
		NOT = { control = { province = 1417 data = -2 } } 
		NOT = { control = { province = 1420 data = -2 } } 
		NOT = { control = { province = 1422 data = -2 } } 
		NOT = { control = { province = 1421 data = -2 } } 
		NOT = { control = { province = 1409 data = -2 } } 
		NOT = { control = { province = 1410 data = -2 } } 
		NOT = { control = { province = 1411 data = -2 } } 
		NOT = { control = { province = 1531 data = -2 } } 
		NOT = { control = { province = 1523 data = -2 } } 
		NOT = { control = { province = 1532 data = -2 } } 
		NOT = { control = { province = 1533 data = -2 } } 
		NOT = { control = { province = 1534 data = -2 } } 
		NOT = { control = { province = 1535 data = -2 } } # Angutikha
		NOT = { control = { province = 1536 data = -2 } } 
		NOT = { control = { province = 1537 data = -2 } } 
		NOT = { control = { province = 1538 data = -2 } } 
		NOT = { control = { province = 1539 data = -2 } } 
		NOT = { control = { province = 1540 data = -2 } } 
		NOT = { control = { province = 1541 data = -2 } } 
		NOT = { control = { province = 1542 data = -2 } } 
		NOT = { control = { province = 1543 data = -2 } } 
		NOT = { control = { province = 1544 data = -2 } } 
		NOT = { control = { province = 1545 data = -2 } } 
		NOT = { control = { province = 1546 data = -2 } } # Kemerovo
		NOT = { control = { province = 1547 data = -2 } } 
		NOT = { control = { province = 1549 data = -2 } } 
		NOT = { control = { province = 1552 data = -2 } } # Omsk
		NOT = { control = { province = 1558 data = -2 } } 
		NOT = { control = { province = 1559 data = -2 } } 
		NOT = { control = { province = 1560 data = -2 } } # Krasnoyarsk
		NOT = { control = { province = 1561 data = -2 } } # Achinsk
		NOT = { control = { province = 1562 data = -2 } } 
		NOT = { control = { province = 1563 data = -2 } } 
		NOT = { control = { province = 1593 data = -2 } } 
		NOT = { control = { province = 1594 data = -2 } } 
		NOT = { control = { province = 1596 data = -2 } } 
		NOT = { control = { province = 1598 data = -2 } } 
	}
	
	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = independence which = SIB value = 1 }
		command = { type = trigger which = 20062 }
		command = { type = local_setflag which = PuppetSiberia }
	}
}

event = {
	id = 20062
	random = no
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = PuppetSiberia
		exists = SIB
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = make_puppet which = SIB }
		command = { type = alliance which = SIB }
		command = { type = local_clrflag which = PuppetSiberia }
	}
}

################
# Russian manpower should make ai germany less vulnerable after Bitter Peace
#############################################

event = {
	id = 20063
	random = no
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = RussianManpower }
		control = { province = 187 data = GER } # Leningrad
		control = { province = 163 data = GER } # Stalingrad
		control = { province = 175 data = GER } # Moscow 
		NOT = { manpower = 500 }
	}
	
	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = free_manpower value = 0.50 }
		command = { type = local_setflag which = RussianManpower }
	}
}

event = {
	id = 20064
	random = no
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = RussianManpower
		OR = {
			NOT = { control = { province = 187 data = GER } } # Leningrad
			NOT = { control = { province = 163 data = GER } } # Stalingrad
			NOT = { control = { province = 175 data = GER } } # Moscow 
			manpower = 500
		}
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = free_manpower value = -0.50 }
		command = { type = local_clrflag which = RussianManpower }
	}
}
#
# Ger should build Garrisons. Unfortunately the trigger to check the amount of garrisons does not work
#
#event = {
#	id = 20177
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		control = { province = 187 data = GER } # Leningrad
#		control = { province = 163 data = GER } # Stalingrad
#		control = { province = 175 data = GER } # Moscow 
#		OR = {
#			NOT = { war = { country = GER country = SOV } }
#			NOT = { garrison = { country = GER value = 15 } } 
#		}
#		OR = {
#			manpower = 500
#			AND = {
#				manpower = 200
#				random = 50
#			}
#			AND = {
#				NOT = { manpower = 200 }
#				manpower = 50
#				random = 25
#			}
#		}
#		OR = {
#			NOT = { garrison = { country = GER value = 15 } }
#			AND = {
#				garrison = { country = GER value = 15 }
#				NOT = { garrison = { country = GER value = 30 } } 
#				random = 50
#			}
#			AND = {
#				garrison = { country = GER value = 30 }
#				NOT = { garrison = { country = GER value = 45 } }
#				random = 25
#			}
#			AND = {
#				garrison = { country = GER value = 45 }
#				NOT = { garrison = { country = GER value = 60 } }
#				random = 5
#			}
#		}
#	}
#
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 14
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = build_division which = garrison }
#	}
#}
#
################
# build V2 for nuclear strike
#############################################
event = {
	id = 20179
	random = no
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		technology = 16010 # 1948 Miniaturized Fission Bomb
		technology = 7120 # 1944 Ballistic Missile
		day = 0 # First day of the month
		NOT = { day = 1 } # Not day 2 to 30 of a month
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = build_division which = flying_rocket }
	}
}

################
# The AI must keep reserves of manpower
#############################################
#
#event = {
#	id = 20065
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		NOT = { local_flag = Reserve150 }
#		manpower = 250
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = -150 }
#		command = { type = local_setflag which = Reserve150 }
#	}
#}
#
#event = {
#	id = 20066
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		local_flag = Reserve150
#		NOT = { local_flag = Reserve300 }
#		manpower = 250
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = -150 }
#		command = { type = local_setflag which = Reserve300 }
#	}
#}
#
#event = {
#	id = 20067
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		local_flag = Reserve300
#		NOT = { local_flag = Reserve450 }
#		manpower = 250
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = -150 }
#		command = { type = local_setflag which = Reserve450 }
#	}
#}
#
#event = {
#	id = 20068
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		local_flag = Reserve450
#		NOT = { local_flag = Reserve600 }
#		manpower = 250
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = -150 }
#		command = { type = local_setflag which = Reserve600 }
#	}
#}
#
#event = {
#	id = 20069
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		local_flag = Reserve600
#		NOT = { local_flag = Reserve750 }
#		manpower = 250
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = -150 }
#		command = { type = local_setflag which = Reserve750 }
#	}
#}
#
#event = {
#	id = 20070
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		local_flag = Reserve750
#		NOT = { manpower = 20 }
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = 150 }
#		command = { type = local_clrflag which = Reserve750 }
#	}
#}
#
#event = {
#	id = 20071
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		local_flag = Reserve600
#		NOT = { local_flag = Reserve750 }
#		NOT = { manpower = 20 }
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = 150 }
#		command = { type = local_clrflag which = Reserve600 }
#	}
#}
#
#event = {
#	id = 20072
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		local_flag = Reserve450
#		NOT = { local_flag = Reserve600 }
#		NOT = { manpower = 20 }
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = 150 }
#		command = { type = local_clrflag which = Reserve450 }
#	}
#}
#
#event = {
#	id = 20073
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		local_flag = Reserve300
#		NOT = { local_flag = Reserve450 }
#		NOT = { manpower = 20 }
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = 150 }
#		command = { type = local_clrflag which = Reserve300 }
#	}
#}
#
#event = {
#	id = 20074
#	random = no
#	country = GER
#	persistent = yes
#	
#	trigger = {
#		ai = yes
#		local_flag = Reserve150
#		NOT = { local_flag = Reserve300 }
#		NOT = { manpower = 20 }
#	}
#	
#	name = "AI_EVENT"
#	style = 0
#	
#	date = { day = 1 month = january year = 1936 }
#	offset = 1
#	deathdate = { day = 29 month = december year = 1999 }
#
#	action_a = {
#		command = { type = manpowerpool value = 150 }
#		command = { type = local_clrflag which = Reserve150 }
#	}
#}
#
################
# Release Spain as a puppet
#############################################

event = {
	id = 20075
	random = no
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		OR = {
			NOT = { lost_VP = { country = SPR value = 100 } }
			NOT = { exists = SPR } # Create SPA only if SPR is annexed or is not annexable 
		}
		NOT = { exists = SPA }
		control = { province = 341 data = GER } # Madrid
		NOT = { control = { province = 329 data = -2 } } 
		NOT = { control = { province = 330 data = -2 } } 
		NOT = { control = { province = 331 data = -2 } } # Bilbao
		NOT = { control = { province = 332 data = -2 } } 
		NOT = { control = { province = 333 data = -2 } } 
		NOT = { control = { province = 334 data = -2 } } # La Coruna
		NOT = { control = { province = 338 data = -2 } } 
		NOT = { control = { province = 339 data = -2 } } # Valladoid
		NOT = { control = { province = 340 data = -2 } } 
		NOT = { control = { province = 341 data = -2 } } 
		NOT = { control = { province = 342 data = -2 } } # Guadalajara
		NOT = { control = { province = 343 data = -2 } } 
		NOT = { control = { province = 346 data = -2 } } # Huelva
		NOT = { control = { province = 347 data = -2 } } # Seville
		NOT = { control = { province = 348 data = -2 } } # Gibraltar
		NOT = { control = { province = 349 data = -2 } } # Malaga
		NOT = { control = { province = 350 data = -2 } } 
		NOT = { control = { province = 351 data = -2 } } 
		NOT = { control = { province = 352 data = -2 } } # Murcia
		NOT = { control = { province = 353 data = -2 } } 
		NOT = { control = { province = 354 data = -2 } } # Valencia
		NOT = { control = { province = 355 data = -2 } } 
		NOT = { control = { province = 356 data = -2 } } # Tarragona
		NOT = { control = { province = 357 data = -2 } } # Barcelona
#		NOT = { control = { province = 535 data = -2 } } # Mallorca
#		NOT = { control = { province = 536 data = -2 } } 
#		NOT = { control = { province = 537 data = -2 } } 
#		NOT = { control = { province = 954 data = -2 } } # Melilla
#		NOT = { control = { province = 955 data = -2 } } 
#		NOT = { control = { province = 956 data = -2 } } 
#		NOT = { control = { province = 957 data = -2 } } 
#		NOT = { control = { province = 961 data = -2 } } 
#		NOT = { control = { province = 962 data = -2 } } 
#		NOT = { control = { province = 963 data = -2 } } 
#		NOT = { control = { province = 964 data = -2 } } 
#		NOT = { control = { province = 965 data = -2 } } 
#		NOT = { control = { province = 967 data = -2 } } 
#		NOT = { control = { province = 971 data = -2 } } 
#		NOT = { control = { province = 972 data = -2 } } 
#		NOT = { control = { province = 1091 data = -2 } } 		
	}
	
	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = independence which = SPA value = 1 }
		command = { type = trigger which = 20076 }
		command = { type = local_setflag which = PuppetSpain }
	}
}

event = {
	id = 20076
	random = no
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = PuppetSpain
		exists = SPA
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = make_puppet which = SPA }
		command = { type = alliance which = SPA }
		command = { type = local_clrflag which = PuppetSpain }
	}
}

################
# Resource transfer events by Pang Bingxun
#############################################

event = {
	id = 20077
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { flag = GermanyNotLowOnEnergy }
		energy = 6000
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = setflag which = GermanyNotLowOnEnergy }
	}
}

event = {
	id = 20078
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		flag = GermanyNotLowOnEnergy
		NOT = { energy = 5000 }
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = clrflag which = GermanyNotLowOnEnergy }
	}
}

event = {
	id = 20079
	random = no 
	country = GER
	persistent = yes
	# triggered by various events
	name = "AI_EVENT"
	style = 0
	
	action_a = {
		command = { type = energypool value = -60 }
		command = { type = supplies value = 15 } # 60 x 1 / 6 x 1.5
	}
}

event = {
	id = 20080
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { flag = GermanyNotLowOnMetal }
		metal = 4000
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = setflag which = GermanyNotLowOnMetal }
	}
}

event = {
	id = 20081
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		flag = GermanyNotLowOnMetal
		NOT = { metal = 3000 }
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = clrflag which = GermanyNotLowOnMetal }
	}
}

event = {
	id = 20082
	random = no 
	country = GER
	persistent = yes
	# triggered by various events
	name = "AI_EVENT"
	style = 0
	
	action_a = {
		command = { type = metalpool value = -60 }
		command = { type = supplies value = 30 } # 60 x 2 / 6 x 1.5
	}
}

event = {
	id = 20083
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { flag = GermanyNotLowOnRares }
		rare_materials = 2000
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = setflag which = GermanyNotLowOnRares }
	}
}

event = {
	id = 20084
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		flag = GermanyNotLowOnRares
		NOT = { rare_materials = 1500 }
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = clrflag which = GermanyNotLowOnRares }
	}
}

event = {
	id = 20085
	random = no 
	country = GER
	persistent = yes
	# triggered by various events
	name = "AI_EVENT"
	style = 0
	
	action_a = {
		command = { type = rarematerialspool value = -60 }
		command = { type = supplies value = 60 } # 60 x 4 / 6 x 1.5
	}
}

event = {
	id = 20086
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { flag = GermanyNotLowOnOil }
		oil = 9000
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = setflag which = GermanyNotLowOnOil }
	}
}

event = {
	id = 20087
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		flag = GermanyNotLowOnOil
		NOT = { oil = 8000 }
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = clrflag which = GermanyNotLowOnOil }
	}
}

event = {
	id = 20088
	random = no 
	country = GER
	persistent = yes
	# triggered by various events
	name = "AI_EVENT"
	style = 0
	
	action_a = {
		command = { type = oilpool value = -60 }
		command = { type = supplies value = 45 } # 60 x 3 / 6 x 1.5
	}
}

event = {
	id = 20089
	random = no 
	country = SLO
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		puppet = { country = SLO country = GER } 
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20090
	random = no 
	country = SLO
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		puppet = { country = SLO country = GER } 
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20091
	random = no 
	country = SLO
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		puppet = { country = SLO country = GER } 
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20092
	random = no 
	country = SLO
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		puppet = { country = SLO country = GER } 
		NOT = { oil = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20093
	random = no 
	country = VIC
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = VIC country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20094
	random = no 
	country = VIC
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = VIC country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20095
	random = no 
	country = VIC
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = VIC country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20096
	random = no 
	country = VIC
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = VIC country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20097
	random = no 
	country = HUN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = HUN country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20098
	random = no 
	country = HUN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = HUN country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20099
	random = no 
	country = HUN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = HUN country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20100
	random = no 
	country = HUN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = HUN country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20101
	random = no 
	country = SIB
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		puppet = { country = SIB country = GER } 
		NOT = { energy = 900 }
		supplies = 300 # 150 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20102
	random = no 
	country = SIB
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		puppet = { country = SIB country = GER } 
		NOT = { metal = 700 }
		supplies = 300 # 150 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20103
	random = no 
	country = SIB
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		puppet = { country = SIB country = GER } 
		NOT = { rare_materials = 500 }
		supplies = 300 # 150 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20104
	random = no 
	country = SIB
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		puppet = { country = SIB country = GER } 
		NOT = { oil = 900 }
		supplies = 300 # 150 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20105
	random = no 
	country = CZE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = CZE country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20106
	random = no 
	country = CZE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = CZE country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20107
	random = no 
	country = CZE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = CZE country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20108
	random = no 
	country = CZE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = CZE country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20109
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = POL country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20110
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = POL country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20111
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = POL country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20112
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = POL country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20113
	random = no 
	country = LIT
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = LIT country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20114
	random = no 
	country = LIT
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = LIT country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20115
	random = no 
	country = LIT
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = LIT country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20116
	random = no 
	country = LIT
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = LIT country = GER }
			atwar = no
		}
		NOT = { oil = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20117
	random = no 
	country = LAT
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = LAT country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20118
	random = no 
	country = LAT
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = LAT country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20119
	random = no 
	country = LAT
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = LAT country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20120
	random = no 
	country = LAT
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = LAT country = GER }
			atwar = no
		}
		NOT = { oil = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20121
	random = no 
	country = EST
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = EST country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20122
	random = no 
	country = EST
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = EST country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20123
	random = no 
	country = EST
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = EST country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20124
	random = no 
	country = EST
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = EST country = GER }
			atwar = no
		}
		NOT = { oil = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20125
	random = no 
	country = FIN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = FIN country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20126
	random = no 
	country = FIN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = FIN country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20127
	random = no 
	country = FIN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = FIN country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20128
	random = no 
	country = FIN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = FIN country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20129
	random = no 
	country = SWE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = SWE country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20130
	random = no 
	country = SWE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = SWE country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20131
	random = no 
	country = SWE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = SWE country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20132
	random = no 
	country = SWE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = SWE country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20133
	random = no 
	country = NOR
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = NOR country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20134
	random = no 
	country = NOR
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = NOR country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20135
	random = no 
	country = NOR
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = NOR country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20136
	random = no 
	country = NOR
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = NOR country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20137
	random = no 
	country = DEN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = DEN country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20138
	random = no 
	country = DEN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = DEN country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20139
	random = no 
	country = DEN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = DEN country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20140
	random = no 
	country = DEN
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = DEN country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20141
	random = no 
	country = ITA
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = ITA country = GER }
			AND = {
				NOT = { year = 1942 }
				NOT = { war = { country = ITA country = GER } }
			}
		}
		OR = {
			AND = {
				NOT = { energy = 900 }
				supplies = 300 # 150 left at worst
			}
			AND = {
				NOT = { energy = 3000 }
				supplies = 300 # 150 left at worst
				year = 1938
			}
		}
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20142
	random = no 
	country = ITA
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = ITA country = GER }
			AND = {
				NOT = { year = 1942 }
				NOT = { war = { country = ITA country = GER } }
			}
		}
		OR = {
			AND = {
				NOT = { metal = 700 }
				supplies = 300 # 150 left at worst
			}
			AND = {
				NOT = { metal = 2000 }
				supplies = 300 # 150 left at worst
				year = 1938
			}
		}
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20143
	random = no 
	country = ITA
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = ITA country = GER }
			AND = {
				NOT = { year = 1942 }
				NOT = { war = { country = ITA country = GER } }
			}
		}
		OR = {
			AND = {
				NOT = { rare_materials = 500 }
				supplies = 300 # 150 left at worst
			}
			AND = {
				NOT = { rare_materials = 1000 }
				supplies = 300 # 150 left at worst
				year = 1938
			}
		}
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20144
	random = no 
	country = ITA
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = ITA country = GER }
			AND = {
				NOT = { year = 1942 }
				NOT = { war = { country = ITA country = GER } }
			}
		}
		OR = {
			AND = {
				NOT = { oil = 900 }
				supplies = 300 # 150 left at worst
			}
			AND = {
				NOT = { oil = 2500 }
				supplies = 300 # 150 left at worst
				year = 1938
			}
		}
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20145
	random = no 
	country = YUG
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = YUG country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20146
	random = no 
	country = YUG
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = YUG country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20147
	random = no 
	country = YUG
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = YUG country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20148
	random = no 
	country = YUG
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = YUG country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20149
	random = no 
	country = ROM
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = ROM country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20150
	random = no 
	country = ROM
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = ROM country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20151
	random = no 
	country = ROM
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = ROM country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20152
	random = no 
	country = ROM
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = ROM country = GER }
			atwar = no
		}
		NOT = { oil = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20153
	random = no 
	country = BUL
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = BUL country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20154
	random = no 
	country = BUL
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = BUL country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20155
	random = no 
	country = BUL
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = BUL country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20156
	random = no 
	country = BUL
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = BUL country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20157
	random = no 
	country = GRE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = GRE country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20158
	random = no 
	country = GRE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = GRE country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20159
	random = no 
	country = GRE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = GRE country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20160
	random = no 
	country = GRE
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = GRE country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20161
	random = no 
	country = SCH
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = SCH country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20162
	random = no 
	country = SCH
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = SCH country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20163
	random = no 
	country = SCH
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = SCH country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20164
	random = no 
	country = SCH
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = SCH country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20165
	random = no 
	country = SPA
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = SPA country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20166
	random = no 
	country = SPA
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = SPA country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20167
	random = no 
	country = SPA
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = SPA country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20168
	random = no 
	country = SPA
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = SPA country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20169
	random = no 
	country = POR
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = POR country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20170
	random = no 
	country = POR
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = POR country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20171
	random = no 
	country = POR
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = POR country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20172
	random = no 
	country = POR
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = POR country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 160 # 10 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20173
	random = no 
	country = U73
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = U73 country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 300 # 150 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20174
	random = no 
	country = U73
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = U73 country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 300 # 150 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20175
	random = no 
	country = U73
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = U73 country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 300 # 150 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20176
	random = no 
	country = U73
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = U73 country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 300 # 150 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

event = {
	id = 20180
	random = no 
	country = AUS
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnEnergy
		OR = {
			alliance = { country = AUS country = GER }
			atwar = no
		}
		NOT = { energy = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = energypool value = 60 }
		command = { type = supplies value = -15 } # 60 x 1 / 6 x 1.5
		command = { type = trigger which = 20079 }
	}
}

event = {
	id = 20181
	random = no 
	country = AUS
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnMetal
		OR = {
			alliance = { country = AUS country = GER }
			atwar = no
		}
		NOT = { metal = 700 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = metalpool value = 60 }
		command = { type = supplies value = -30 } # 60 x 2 / 6 x 1.5
		command = { type = trigger which = 20082 }
	}
}

event = {
	id = 20182
	random = no 
	country = AUS
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnRares
		OR = {
			alliance = { country = AUS country = GER }
			atwar = no
		}
		NOT = { rare_materials = 500 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = rarematerialspool value = 60 }
		command = { type = supplies value = -60 } # 60 x 4 / 6 x 1.5
		command = { type = trigger which = 20085 }
	}
}

event = {
	id = 20183
	random = no 
	country = AUS
	persistent = yes
	
	trigger = {
		ai = yes
		ai = GER
		flag = GermanyNotLowOnOil
		OR = {
			alliance = { country = AUS country = GER }
			atwar = no
		}
		NOT = { oil = 900 }
		supplies = 200 # 50 left at worst
	}

	name = "AI_EVENT"
	style = 0
	
	date = { day = 0 month = january year = 1936}
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = oilpool value = 60 }
		command = { type = supplies value = -45 } # 60 x 3 / 6 x 1.5
		command = { type = trigger which = 20088 }
	}
}

####################################
# Germany 20500 - 20599 = Minister Change Events
####################################
################
# Minister of Security Section 20500 - 20509
#############################################
event = { # Franz Grtner takes power
	id = 20500
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		minister = 223 # Franz Grtner
		NOT = { InCabinet = 223 }
		AND = {
			manpower = 330
			NOT = { control = { province = 56 data = GER } } # Paris
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ministerofsecurity which = 223 }
		command = { type = dissent value = -1 }
	}
}
event = { # Heinrich Himmler takes power
	id = 20501
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		minister = 108 # Heinrich Himmler
		NOT = { InCabinet = 108 }
		manpower = 320
		control = { province = 56 data = GER } # Paris
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ministerofsecurity which = 108 }
		command = { type = dissent value = -1 }
	}
}
event = { # Joseph Goebbels takes power
	id = 20502
	random = no 
	country = GER
	persistent = yes

	trigger = {
		ai = yes
		minister = 110 # Goebbels
		NOT = { InCabinet = 110 }
		NOT = { manpower = 300 }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ministerofsecurity which = 110 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of Staff Section 20510 - 20519 
#############################################
event = { # Erich Hoepner takes power
	id = 20510
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 160 # Erich Hoepner
		NOT = { InCabinet = 160 }
		OR = {
			AND = {
				atwar = no
				manpower = 320
			}
			AND = {
				NOT = { minister = 7 } # Ludwig Beck
				NOT = { minister = 168 } # Adolf Heusinger
				NOT = { minister = 156 } # Alfred Jodl
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofstaff which = 160 }
		command = { type = dissent value = -1 }
	}
}
event = { # Ernst Busse takes power
	id = 20511
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 272 # Ernst Busse
		NOT = { InCabinet = 272 }
		OR = {
			NOT = { manpower = 300 }
			AND = {
				NOT = { minister = 7 } # Ludwig Beck
				NOT = { minister = 160 } # Erich Hoepner
				NOT = { minister = 156 } # Alfred Jodl
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofstaff which = 272 }
		command = { type = dissent value = -1 }
	}
}
event = { # Ludwig Beck takes power
	id = 20512
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 7 # Ludwig Beck
		NOT = { InCabinet = 7 }
		OR = {
			AND = {
				atwar = yes
				NOT = { war = { country = GER country = SOV } }
				manpower = 320
			}
			AND = {
				NOT = { minister = 272 } # Ernst Busse
				NOT = { minister = 156 } # Alfred Jodl
				NOT = { minister = 160 } # Erich Hoepner
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofstaff which = 7 }
		command = { type = dissent value = -1 }
	}
}
event = { # Alfred Jodl takes power
	id = 20513
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 156 # Alfred Jodl
		NOT = { InCabinet = 156 }
		OR = {
			AND = {
				war = { country = GER country = SOV }
				manpower = 320
			}
			AND = {
				NOT = { minister = 7 } # Ludwig Beck
				NOT = { minister = 272 } # Ernst Busse
				NOT = { minister = 160 } # Erich Hoepner
			}
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofstaff which = 156 }
		command = { type = dissent value = -1 }
	}
}
################
# Head of Intelligence Section 20520 - 20529 
#############################################
event = { # Hans Oster takes power
	id = 20520
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 146 # Hans Oster
		NOT = { InCabinet = 146 }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = ministerofintelligence which = 146 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of the Army Section 20530 - 20539
#############################################
event = { # Fedor von Bock takes power
	id = 20530
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 182 # Fedor von Bock
		NOT = { InCabinet = 182 }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofarmy which = 182 }
		command = { type = dissent value = -1 }
	}
}
event = { # Walter von Lttwitz takes power
	id = 20531
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 185 # Walter von Lttwitz
		NOT = { InCabinet = 185 }
		NOT = { minister = 182 } # Fedor von Bock
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofarmy which = 185 }
		command = { type = dissent value = -1 }
	}
}
################
# Armament Minister Section 20540 - 20549
#############################################
event = { # Hjalmar Schacht takes power
	id = 20540
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 77 # Hjalmar Schacht
		NOT = { InCabinet = 77 }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = armamentminister which = 77 }
		command = { type = dissent value = -1 }
	}
}
event = { # Albert Speer takes power
	id = 20541
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 86 # Albert Speer
		NOT = { InCabinet = 86 }
		NOT = { minister = 77 } # Hjalmar Schacht
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = armamentminister which = 86 }
		command = { type = dissent value = -1 }
	}
}
event = { # Johann Schwerin von Krosigk takes power
	id = 20542
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 85 # Johann Schwerin von Krosigk
		NOT = { InCabinet = 85 }
		NOT = { minister = 86 } # Albert Speer
		NOT = { minister = 77 } # Hjalmar Schacht
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = armamentminister which = 85 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of Air Minister Section 20550 - 20559
# Air AI Flags
#	GERAirAINaval			= Germany has there Air vs Naval AI loaded
#	GERAirAIStrategic		= Germany has their Strategic bombing AI loaded
#	GERAirAIGround			= Germany has their ground support AI loaded
#############################################
event = { # Hermann Gring takes power
	id = 20550
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = GERAirAIGround
		minister = 10 # Hermann Gring
		NOT = { InCabinet = 10 }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofair which = 10 }
		command = { type = dissent value = -1 }
	}
}
event = { # Karl Koller takes power
	id = 20551
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = GERAirAIGround
		NOT = { minister = 10 }# Hermann Gring
		minister = 205 # Karl Koller
		NOT = { InCabinet = 205 }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofair which = 205 }
		command = { type = dissent value = -1 }
	}
}
event = { # Carl Friedrich von Siemens takes power
	id = 20552
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		OR = {
			local_flag = GERAirAINaval
			local_flag = GERAirAIStrategic			
		}
		minister = 208 # Carl Friedrich von Siemens
		NOT = { InCabinet = 208 }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofair which = 208 }
		command = { type = dissent value = -1 }
	}
}
event = { # Ulrich Grauert takes power
	id = 20553
	random = no 
	country = GER
	persistent = yes
	
	trigger = {
		ai = yes
		OR = {
			local_flag = GERAirAINaval
			local_flag = GERAirAIStrategic			
		}
		minister = 236 # Ulrich Grauert
		NOT = { InCabinet = 236 }
		NOT = { minister = 208 } # Carl Friedrich von Siemens
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		command = { type = chiefofair which = 236 }
		command = { type = dissent value = -1 }
	}
}
